2 * Copyright (c) 2000-2007 Apple Inc. All rights reserved.
11 * Revision 1.2 1998/09/30 21:20:44 wsanchez
12 * Merged in IntelMerge1 (mburg: Intel support)
14 * Revision 1.1.2.1 1998/09/30 18:18:50 mburg
15 * Changes for Intel port
17 * Revision 1.1.1.1 1998/03/07 02:25:45 wsanchez
18 * Import of OSF Mach kernel (~mburg)
20 * Revision 1.1.6.2 1995/12/15 10:52:14 bernadat
21 * Split dev and vendor ids.
24 * Revision 1.1.6.1 1995/02/23 17:22:27 alanl
25 * Taken from DIPC2_SHARED
26 * [1995/01/03 19:09:31 alanl]
28 * Revision 1.1.2.1 1994/10/11 18:24:42 rwd
30 * [1994/10/11 18:15:31 rwd]
37 * Copyright (c) 1994 Wolfgang Stanglmeier, Koeln, Germany
38 * <wolf@dentaro.GUN.de>
41 #ifndef __PCI_DEVICE_H__
42 #define __PCI_DEVICE_H__
44 /*------------------------------------------------------------
46 * Per driver structure.
48 *------------------------------------------------------------
51 typedef unsigned short pci_vendor_id_t
;
52 typedef unsigned short pci_dev_id_t
;
58 unsigned char forward
;
64 int (*probe
)(pcici_t pci_ident
); /* test whether device
66 int (*attach
)(pcici_t pci_ident
); /* setup driver for a
68 pci_vendor_id_t vendor_id
; /* vendor pci id */
69 pci_dev_id_t device_id
; /* device pci id */
70 char *name
; /* device name */
71 char *vendor
; /* device long name */
72 void (*intr
)(int); /* interupt handler */
75 /*-----------------------------------------------------------
77 * Per device structure.
79 * It is initialized by the config utility and should live in
80 * "ioconf.c". At the moment there is only one field.
82 * This is a first attempt to include the pci bus to 386bsd.
83 * So this structure may grow ..
85 *-----------------------------------------------------------
89 struct pci_driver
* pd_driver
;
92 /*-----------------------------------------------------------
94 * This functions may be used by drivers to map devices
95 * to virtual and physical addresses. The va and pa
96 * addresses are "in/out" parameters. If they are 0
97 * on entry, the mapping function assigns an address.
99 *-----------------------------------------------------------
102 int pci_map_mem(pcici_t tag
,
106 #endif /*__PCI_DEVICE_H__*/