summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/rtems/bsd/local/pci_if.h
blob: 1e0765469a7263c0b90a8cfda5edf1fda9c6bb05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
/*
 * This file is produced automatically.
 * Do not modify anything in here by hand.
 *
 * Created from source file
 *   freebsd-org/sys/dev/pci/pci_if.m
 * with
 *   makeobjops.awk
 *
 * See the source file for legal information
 */


#ifndef _pci_if_h_
#define _pci_if_h_


struct nvlist;

enum pci_id_type {
    PCI_ID_RID,
    PCI_ID_MSI,
};

enum pci_feature {
    PCI_FEATURE_HP,		/* Hot Plug feature */
    PCI_FEATURE_AER,		/* Advanced Error Reporting */
};

/** @brief Unique descriptor for the PCI_READ_CONFIG() method */
extern struct kobjop_desc pci_read_config_desc;
/** @brief A function implementing the PCI_READ_CONFIG() method */
typedef u_int32_t pci_read_config_t(device_t dev, device_t child, int reg,
                                    int width);

static __inline u_int32_t PCI_READ_CONFIG(device_t dev, device_t child, int reg,
                                          int width)
{
	kobjop_t _m;
	u_int32_t rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_read_config);
	rc = ((pci_read_config_t *) _m)(dev, child, reg, width);
	return (rc);
}

/** @brief Unique descriptor for the PCI_WRITE_CONFIG() method */
extern struct kobjop_desc pci_write_config_desc;
/** @brief A function implementing the PCI_WRITE_CONFIG() method */
typedef void pci_write_config_t(device_t dev, device_t child, int reg,
                                u_int32_t val, int width);

static __inline void PCI_WRITE_CONFIG(device_t dev, device_t child, int reg,
                                      u_int32_t val, int width)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_write_config);
	((pci_write_config_t *) _m)(dev, child, reg, val, width);
}

/** @brief Unique descriptor for the PCI_GET_POWERSTATE() method */
extern struct kobjop_desc pci_get_powerstate_desc;
/** @brief A function implementing the PCI_GET_POWERSTATE() method */
typedef int pci_get_powerstate_t(device_t dev, device_t child);

static __inline int PCI_GET_POWERSTATE(device_t dev, device_t child)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_get_powerstate);
	rc = ((pci_get_powerstate_t *) _m)(dev, child);
	return (rc);
}

/** @brief Unique descriptor for the PCI_SET_POWERSTATE() method */
extern struct kobjop_desc pci_set_powerstate_desc;
/** @brief A function implementing the PCI_SET_POWERSTATE() method */
typedef int pci_set_powerstate_t(device_t dev, device_t child, int state);

static __inline int PCI_SET_POWERSTATE(device_t dev, device_t child, int state)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_set_powerstate);
	rc = ((pci_set_powerstate_t *) _m)(dev, child, state);
	return (rc);
}

/** @brief Unique descriptor for the PCI_GET_VPD_IDENT() method */
extern struct kobjop_desc pci_get_vpd_ident_desc;
/** @brief A function implementing the PCI_GET_VPD_IDENT() method */
typedef int pci_get_vpd_ident_t(device_t dev, device_t child,
                                const char **identptr);

static __inline int PCI_GET_VPD_IDENT(device_t dev, device_t child,
                                      const char **identptr)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_get_vpd_ident);
	rc = ((pci_get_vpd_ident_t *) _m)(dev, child, identptr);
	return (rc);
}

/** @brief Unique descriptor for the PCI_GET_VPD_READONLY() method */
extern struct kobjop_desc pci_get_vpd_readonly_desc;
/** @brief A function implementing the PCI_GET_VPD_READONLY() method */
typedef int pci_get_vpd_readonly_t(device_t dev, device_t child, const char *kw,
                                   const char **vptr);

static __inline int PCI_GET_VPD_READONLY(device_t dev, device_t child,
                                         const char *kw, const char **vptr)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_get_vpd_readonly);
	rc = ((pci_get_vpd_readonly_t *) _m)(dev, child, kw, vptr);
	return (rc);
}

/** @brief Unique descriptor for the PCI_ENABLE_BUSMASTER() method */
extern struct kobjop_desc pci_enable_busmaster_desc;
/** @brief A function implementing the PCI_ENABLE_BUSMASTER() method */
typedef int pci_enable_busmaster_t(device_t dev, device_t child);

static __inline int PCI_ENABLE_BUSMASTER(device_t dev, device_t child)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_enable_busmaster);
	rc = ((pci_enable_busmaster_t *) _m)(dev, child);
	return (rc);
}

/** @brief Unique descriptor for the PCI_DISABLE_BUSMASTER() method */
extern struct kobjop_desc pci_disable_busmaster_desc;
/** @brief A function implementing the PCI_DISABLE_BUSMASTER() method */
typedef int pci_disable_busmaster_t(device_t dev, device_t child);

static __inline int PCI_DISABLE_BUSMASTER(device_t dev, device_t child)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_disable_busmaster);
	rc = ((pci_disable_busmaster_t *) _m)(dev, child);
	return (rc);
}

/** @brief Unique descriptor for the PCI_ENABLE_IO() method */
extern struct kobjop_desc pci_enable_io_desc;
/** @brief A function implementing the PCI_ENABLE_IO() method */
typedef int pci_enable_io_t(device_t dev, device_t child, int space);

static __inline int PCI_ENABLE_IO(device_t dev, device_t child, int space)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_enable_io);
	rc = ((pci_enable_io_t *) _m)(dev, child, space);
	return (rc);
}

/** @brief Unique descriptor for the PCI_DISABLE_IO() method */
extern struct kobjop_desc pci_disable_io_desc;
/** @brief A function implementing the PCI_DISABLE_IO() method */
typedef int pci_disable_io_t(device_t dev, device_t child, int space);

static __inline int PCI_DISABLE_IO(device_t dev, device_t child, int space)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_disable_io);
	rc = ((pci_disable_io_t *) _m)(dev, child, space);
	return (rc);
}

/** @brief Unique descriptor for the PCI_ASSIGN_INTERRUPT() method */
extern struct kobjop_desc pci_assign_interrupt_desc;
/** @brief A function implementing the PCI_ASSIGN_INTERRUPT() method */
typedef int pci_assign_interrupt_t(device_t dev, device_t child);

static __inline int PCI_ASSIGN_INTERRUPT(device_t dev, device_t child)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_assign_interrupt);
	rc = ((pci_assign_interrupt_t *) _m)(dev, child);
	return (rc);
}

/** @brief Unique descriptor for the PCI_FIND_CAP() method */
extern struct kobjop_desc pci_find_cap_desc;
/** @brief A function implementing the PCI_FIND_CAP() method */
typedef int pci_find_cap_t(device_t dev, device_t child, int capability,
                           int *capreg);

static __inline int PCI_FIND_CAP(device_t dev, device_t child, int capability,
                                 int *capreg)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_find_cap);
	rc = ((pci_find_cap_t *) _m)(dev, child, capability, capreg);
	return (rc);
}

/** @brief Unique descriptor for the PCI_FIND_NEXT_CAP() method */
extern struct kobjop_desc pci_find_next_cap_desc;
/** @brief A function implementing the PCI_FIND_NEXT_CAP() method */
typedef int pci_find_next_cap_t(device_t dev, device_t child, int capability,
                                int start, int *capreg);

static __inline int PCI_FIND_NEXT_CAP(device_t dev, device_t child,
                                      int capability, int start, int *capreg)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_find_next_cap);
	rc = ((pci_find_next_cap_t *) _m)(dev, child, capability, start, capreg);
	return (rc);
}

/** @brief Unique descriptor for the PCI_FIND_EXTCAP() method */
extern struct kobjop_desc pci_find_extcap_desc;
/** @brief A function implementing the PCI_FIND_EXTCAP() method */
typedef int pci_find_extcap_t(device_t dev, device_t child, int capability,
                              int *capreg);

static __inline int PCI_FIND_EXTCAP(device_t dev, device_t child,
                                    int capability, int *capreg)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_find_extcap);
	rc = ((pci_find_extcap_t *) _m)(dev, child, capability, capreg);
	return (rc);
}

/** @brief Unique descriptor for the PCI_FIND_NEXT_EXTCAP() method */
extern struct kobjop_desc pci_find_next_extcap_desc;
/** @brief A function implementing the PCI_FIND_NEXT_EXTCAP() method */
typedef int pci_find_next_extcap_t(device_t dev, device_t child, int capability,
                                   int start, int *capreg);

static __inline int PCI_FIND_NEXT_EXTCAP(device_t dev, device_t child,
                                         int capability, int start, int *capreg)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_find_next_extcap);
	rc = ((pci_find_next_extcap_t *) _m)(dev, child, capability, start, capreg);
	return (rc);
}

/** @brief Unique descriptor for the PCI_FIND_HTCAP() method */
extern struct kobjop_desc pci_find_htcap_desc;
/** @brief A function implementing the PCI_FIND_HTCAP() method */
typedef int pci_find_htcap_t(device_t dev, device_t child, int capability,
                             int *capreg);

static __inline int PCI_FIND_HTCAP(device_t dev, device_t child, int capability,
                                   int *capreg)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_find_htcap);
	rc = ((pci_find_htcap_t *) _m)(dev, child, capability, capreg);
	return (rc);
}

/** @brief Unique descriptor for the PCI_FIND_NEXT_HTCAP() method */
extern struct kobjop_desc pci_find_next_htcap_desc;
/** @brief A function implementing the PCI_FIND_NEXT_HTCAP() method */
typedef int pci_find_next_htcap_t(device_t dev, device_t child, int capability,
                                  int start, int *capreg);

static __inline int PCI_FIND_NEXT_HTCAP(device_t dev, device_t child,
                                        int capability, int start, int *capreg)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_find_next_htcap);
	rc = ((pci_find_next_htcap_t *) _m)(dev, child, capability, start, capreg);
	return (rc);
}

/** @brief Unique descriptor for the PCI_ALLOC_MSI() method */
extern struct kobjop_desc pci_alloc_msi_desc;
/** @brief A function implementing the PCI_ALLOC_MSI() method */
typedef int pci_alloc_msi_t(device_t dev, device_t child, int *count);

static __inline int PCI_ALLOC_MSI(device_t dev, device_t child, int *count)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_alloc_msi);
	rc = ((pci_alloc_msi_t *) _m)(dev, child, count);
	return (rc);
}

/** @brief Unique descriptor for the PCI_ALLOC_MSIX() method */
extern struct kobjop_desc pci_alloc_msix_desc;
/** @brief A function implementing the PCI_ALLOC_MSIX() method */
typedef int pci_alloc_msix_t(device_t dev, device_t child, int *count);

static __inline int PCI_ALLOC_MSIX(device_t dev, device_t child, int *count)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_alloc_msix);
	rc = ((pci_alloc_msix_t *) _m)(dev, child, count);
	return (rc);
}

/** @brief Unique descriptor for the PCI_ENABLE_MSI() method */
extern struct kobjop_desc pci_enable_msi_desc;
/** @brief A function implementing the PCI_ENABLE_MSI() method */
typedef void pci_enable_msi_t(device_t dev, device_t child, uint64_t address,
                              uint16_t data);

static __inline void PCI_ENABLE_MSI(device_t dev, device_t child,
                                    uint64_t address, uint16_t data)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_enable_msi);
	((pci_enable_msi_t *) _m)(dev, child, address, data);
}

/** @brief Unique descriptor for the PCI_ENABLE_MSIX() method */
extern struct kobjop_desc pci_enable_msix_desc;
/** @brief A function implementing the PCI_ENABLE_MSIX() method */
typedef void pci_enable_msix_t(device_t dev, device_t child, u_int index,
                               uint64_t address, uint32_t data);

static __inline void PCI_ENABLE_MSIX(device_t dev, device_t child, u_int index,
                                     uint64_t address, uint32_t data)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_enable_msix);
	((pci_enable_msix_t *) _m)(dev, child, index, address, data);
}

/** @brief Unique descriptor for the PCI_DISABLE_MSI() method */
extern struct kobjop_desc pci_disable_msi_desc;
/** @brief A function implementing the PCI_DISABLE_MSI() method */
typedef void pci_disable_msi_t(device_t dev, device_t child);

static __inline void PCI_DISABLE_MSI(device_t dev, device_t child)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_disable_msi);
	((pci_disable_msi_t *) _m)(dev, child);
}

/** @brief Unique descriptor for the PCI_REMAP_MSIX() method */
extern struct kobjop_desc pci_remap_msix_desc;
/** @brief A function implementing the PCI_REMAP_MSIX() method */
typedef int pci_remap_msix_t(device_t dev, device_t child, int count,
                             const u_int *vectors);

static __inline int PCI_REMAP_MSIX(device_t dev, device_t child, int count,
                                   const u_int *vectors)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_remap_msix);
	rc = ((pci_remap_msix_t *) _m)(dev, child, count, vectors);
	return (rc);
}

/** @brief Unique descriptor for the PCI_RELEASE_MSI() method */
extern struct kobjop_desc pci_release_msi_desc;
/** @brief A function implementing the PCI_RELEASE_MSI() method */
typedef int pci_release_msi_t(device_t dev, device_t child);

static __inline int PCI_RELEASE_MSI(device_t dev, device_t child)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_release_msi);
	rc = ((pci_release_msi_t *) _m)(dev, child);
	return (rc);
}

/** @brief Unique descriptor for the PCI_MSI_COUNT() method */
extern struct kobjop_desc pci_msi_count_desc;
/** @brief A function implementing the PCI_MSI_COUNT() method */
typedef int pci_msi_count_t(device_t dev, device_t child);

static __inline int PCI_MSI_COUNT(device_t dev, device_t child)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_msi_count);
	rc = ((pci_msi_count_t *) _m)(dev, child);
	return (rc);
}

/** @brief Unique descriptor for the PCI_MSIX_COUNT() method */
extern struct kobjop_desc pci_msix_count_desc;
/** @brief A function implementing the PCI_MSIX_COUNT() method */
typedef int pci_msix_count_t(device_t dev, device_t child);

static __inline int PCI_MSIX_COUNT(device_t dev, device_t child)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_msix_count);
	rc = ((pci_msix_count_t *) _m)(dev, child);
	return (rc);
}

/** @brief Unique descriptor for the PCI_MSIX_PBA_BAR() method */
extern struct kobjop_desc pci_msix_pba_bar_desc;
/** @brief A function implementing the PCI_MSIX_PBA_BAR() method */
typedef int pci_msix_pba_bar_t(device_t dev, device_t child);

static __inline int PCI_MSIX_PBA_BAR(device_t dev, device_t child)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_msix_pba_bar);
	rc = ((pci_msix_pba_bar_t *) _m)(dev, child);
	return (rc);
}

/** @brief Unique descriptor for the PCI_MSIX_TABLE_BAR() method */
extern struct kobjop_desc pci_msix_table_bar_desc;
/** @brief A function implementing the PCI_MSIX_TABLE_BAR() method */
typedef int pci_msix_table_bar_t(device_t dev, device_t child);

static __inline int PCI_MSIX_TABLE_BAR(device_t dev, device_t child)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_msix_table_bar);
	rc = ((pci_msix_table_bar_t *) _m)(dev, child);
	return (rc);
}

/** @brief Unique descriptor for the PCI_GET_ID() method */
extern struct kobjop_desc pci_get_id_desc;
/** @brief A function implementing the PCI_GET_ID() method */
typedef int pci_get_id_t(device_t dev, device_t child, enum pci_id_type type,
                         uintptr_t *id);

static __inline int PCI_GET_ID(device_t dev, device_t child,
                               enum pci_id_type type, uintptr_t *id)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_get_id);
	rc = ((pci_get_id_t *) _m)(dev, child, type, id);
	return (rc);
}

/** @brief Unique descriptor for the PCI_ALLOC_DEVINFO() method */
extern struct kobjop_desc pci_alloc_devinfo_desc;
/** @brief A function implementing the PCI_ALLOC_DEVINFO() method */
typedef struct pci_devinfo * pci_alloc_devinfo_t(device_t dev);

static __inline struct pci_devinfo * PCI_ALLOC_DEVINFO(device_t dev)
{
	kobjop_t _m;
	struct pci_devinfo * rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_alloc_devinfo);
	rc = ((pci_alloc_devinfo_t *) _m)(dev);
	return (rc);
}

/** @brief Unique descriptor for the PCI_CHILD_ADDED() method */
extern struct kobjop_desc pci_child_added_desc;
/** @brief A function implementing the PCI_CHILD_ADDED() method */
typedef void pci_child_added_t(device_t dev, device_t child);

static __inline void PCI_CHILD_ADDED(device_t dev, device_t child)
{
	kobjop_t _m;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_child_added);
	((pci_child_added_t *) _m)(dev, child);
}

/** @brief Unique descriptor for the PCI_IOV_ATTACH() method */
extern struct kobjop_desc pci_iov_attach_desc;
/** @brief A function implementing the PCI_IOV_ATTACH() method */
typedef int pci_iov_attach_t(device_t dev, device_t child,
                             struct nvlist *pf_schema, struct nvlist *vf_schema,
                             const char *name);

static __inline int PCI_IOV_ATTACH(device_t dev, device_t child,
                                   struct nvlist *pf_schema,
                                   struct nvlist *vf_schema, const char *name)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_iov_attach);
	rc = ((pci_iov_attach_t *) _m)(dev, child, pf_schema, vf_schema, name);
	return (rc);
}

/** @brief Unique descriptor for the PCI_IOV_DETACH() method */
extern struct kobjop_desc pci_iov_detach_desc;
/** @brief A function implementing the PCI_IOV_DETACH() method */
typedef int pci_iov_detach_t(device_t dev, device_t child);

static __inline int PCI_IOV_DETACH(device_t dev, device_t child)
{
	kobjop_t _m;
	int rc;
	KOBJOPLOOKUP(((kobj_t)dev)->ops,pci_iov_detach);
	rc = ((pci_iov_detach_t *) _m)(dev, child);
	return (rc);
}

/** @brief Unique descriptor for the PCI_CREATE_IOV_CHILD() method */
extern struct kobjop_desc pci_create_iov_child_desc;
/** @brief A function implementing the PCI_CREATE_IOV_CHILD() method */
typedef device_t pci_create_iov_child_t(device_t bus, device_t pf, uint16_t rid,
                                        uint16_t vid, uint16_t did);

static __inline device_t PCI_CREATE_IOV_CHILD(device_t bus, device_t pf,
                                              uint16_t rid, uint16_t vid,
                                              uint16_t did)
{
	kobjop_t _m;
	device_t rc;
	KOBJOPLOOKUP(((kobj_t)bus)->ops,pci_create_iov_child);
	rc = ((pci_create_iov_child_t *) _m)(bus, pf, rid, vid, did);
	return (rc);
}

#endif /* _pci_if_h_ */