/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to tools.h

  • Committer: Suren A. Chilingaryan
  • Date: 2015-04-20 20:01:04 UTC
  • Revision ID: csa@suren.me-20150420200104-b5xny65io8lvoz3w
Big redign of model structures

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#include <stdio.h>
5
5
#include <stdint.h>
6
6
 
 
7
#include <pcilib.h>
 
8
 
 
9
#define pcilib_memcpy pcilib_memcpy32
 
10
#define pcilib_datacpy pcilib_datacpy32
 
11
 
7
12
#define BIT_MASK(bits) ((1ll << (bits)) - 1)
8
13
 
9
14
#define min2(a, b) (((a)<(b))?(a):(b))
10
15
 
11
 
typedef enum {
12
 
    PCILIB_TRISTATE_NO = 0,
13
 
    PCILIB_TRISTATE_PARTIAL = 1,
14
 
    PCILIB_TRISTATE_YES = 2
15
 
} pcilib_tristate_t;
16
 
 
17
 
#include "pci.h"
18
16
 
19
17
int pcilib_isnumber(const char *str);
20
18
int pcilib_isxnumber(const char *str);