Subversion Repositories HelenOS-historic

Rev

Rev 1324 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1324 Rev 1343
Line 47... Line 47...
47
 
47
 
48
    /* Fields used internally: */
48
    /* Fields used internally: */
49
    struct pci_methods *methods;
49
    struct pci_methods *methods;
50
    struct id_entry **id_hash;  /* names.c */
50
    struct id_entry **id_hash;  /* names.c */
51
    struct id_bucket *current_id_bucket;
51
    struct id_bucket *current_id_bucket;
52
    int fd;         /* proc: fd */
-
 
53
    int fd_rw;      /* proc: fd opened read-write */
-
 
54
    struct pci_dev *cached_dev; /* proc: device the fd is for */
-
 
55
    int fd_pos;     /* proc: current position */
-
 
56
};
52
};
57
 
53
 
58
/* Initialize PCI access */
54
/* Initialize PCI access */
59
struct pci_access *pci_alloc(void);
55
struct pci_access *pci_alloc(void);
60
void pci_init(struct pci_access *);
56
void pci_init(struct pci_access *);
Line 114... Line 110...
114
#define PCI_FILL_RESCAN     0x10000
110
#define PCI_FILL_RESCAN     0x10000
115
 
111
 
116
void pci_setup_cache(struct pci_dev *, u8 * cache, int len);
112
void pci_setup_cache(struct pci_dev *, u8 * cache, int len);
117
 
113
 
118
/*
114
/*
119
 *  Filters
-
 
120
 */
-
 
121
 
-
 
122
struct pci_filter {
-
 
123
    int domain, bus, slot, func;    /* -1 = ANY */
-
 
124
    int vendor, device;
-
 
125
};
-
 
126
 
-
 
127
void pci_filter_init(struct pci_access *, struct pci_filter *);
-
 
128
char *pci_filter_parse_slot(struct pci_filter *, char *);
-
 
129
char *pci_filter_parse_id(struct pci_filter *, char *);
-
 
130
int pci_filter_match(struct pci_filter *, struct pci_dev *);
-
 
131
 
-
 
132
/*
-
 
133
 *  Conversion of PCI ID's to names (according to the pci.ids file)
115
 *  Conversion of PCI ID's to names (according to the pci.ids file)
134
 *
116
 *
135
 *  Call pci_lookup_name() to identify different types of ID's:
117
 *  Call pci_lookup_name() to identify different types of ID's:
136
 *
118
 *
137
 *  VENDOR              (vendorID) -> vendor
119
 *  VENDOR              (vendorID) -> vendor