]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/dev/arm/pci_device.h
xnu-4903.270.47.tar.gz
[apple/xnu.git] / bsd / dev / arm / pci_device.h
index 32844c3ce6f2ab2444c36e1f6315add068867dec..f624a42151e59e5cc429094ebb40a9c554e62aff 100644 (file)
@@ -3,11 +3,11 @@
  */
 /*
  * @OSF_FREE_COPYRIGHT@
- * 
+ *
  */
 /*
  * HISTORY
- * 
+ *
  * Revision 1.2  1998/09/30 21:20:44  wsanchez
  * Merged in IntelMerge1 (mburg: Intel support)
  *
  * Import of OSF Mach kernel (~mburg)
  *
  * Revision 1.1.6.2  1995/12/15  10:52:14  bernadat
- *     Split dev and vendor ids.
- *     [95/11/15            bernadat]
+ *      Split dev and vendor ids.
+ *      [95/11/15            bernadat]
  *
  * Revision 1.1.6.1  1995/02/23  17:22:27  alanl
- *     Taken from DIPC2_SHARED
- *     [1995/01/03  19:09:31  alanl]
- * 
+ *      Taken from DIPC2_SHARED
+ *      [1995/01/03  19:09:31  alanl]
+ *
  * Revision 1.1.2.1  1994/10/11  18:24:42  rwd
- *     Created.
- *     [1994/10/11  18:15:31  rwd]
- * 
+ *      Created.
+ *      [1994/10/11  18:15:31  rwd]
+ *
  * $EndLog$
  */
 /*
  *  Per driver structure.
  *
  *------------------------------------------------------------
-*/
+ */
 
 typedef unsigned short pci_vendor_id_t;
 typedef unsigned short pci_dev_id_t;
 
 typedef union {
-        unsigned long cfg1;
-        struct {
-                 unsigned char   enable;
-                 unsigned char   forward;
-                 unsigned short  port;
-               } cfg2;
-        } pcici_t;
+       unsigned long cfg1;
+       struct {
+               unsigned char   enable;
+               unsigned char   forward;
+               unsigned short  port;
+       } cfg2;
+} pcici_t;
 
 struct pci_driver {
-    int                (*probe )(pcici_t pci_ident);   /* test whether device
-                                                          is present */
-    int                (*attach)(pcici_t pci_ident);   /* setup driver for a
-                                                          device */
-    pci_vendor_id_t    vendor_id;                      /* vendor pci id */
-    pci_dev_id_t       device_id;                      /* device pci id */
-    char               *name;                          /* device name */
-    char               *vendor;                        /* device long name */
-    void               (*intr)(int);                   /* interupt handler */
+       int                 (*probe )(pcici_t pci_ident);/* test whether device
+                                                          is present */
+       int                 (*attach)(pcici_t pci_ident);/* setup driver for a
+                                                          device */
+       pci_vendor_id_t     vendor_id;                  /* vendor pci id */
+       pci_dev_id_t        device_id;                  /* device pci id */
+       char                *name;                      /* device name */
+       char                *vendor;                    /* device long name */
+       void                (*intr)(int);               /* interupt handler */
 };
 
 /*-----------------------------------------------------------
@@ -83,7 +83,7 @@ struct pci_driver {
  *  So this structure may grow ..
  *
  *-----------------------------------------------------------
-*/
+ */
 
 struct pci_device {
        struct pci_driver * pd_driver;
@@ -97,10 +97,10 @@ struct pci_device {
  *  on entry, the mapping function assigns an address.
  *
  *-----------------------------------------------------------
-*/
+ */
 
 int pci_map_mem(pcici_t tag,
-               unsigned long entry,
-               vm_offset_t *va,
-               vm_offset_t *pa);
+    unsigned long entry,
+    vm_offset_t *va,
+    vm_offset_t *pa);
 #endif /*__PCI_DEVICE_H__*/