Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
[firefly-linux-kernel-4.4.55.git] / include / linux / zorro.h
index 2f135cf6eef1600c947e983d59846fe7dedca4e6..7bf9db525e9ee7e7092959c64059198a60bacc3d 100644 (file)
@@ -11,8 +11,6 @@
 #ifndef _LINUX_ZORRO_H
 #define _LINUX_ZORRO_H
 
-#ifndef __ASSEMBLY__
-
 #include <linux/device.h>
 
 
@@ -40,8 +38,6 @@
 typedef __u32 zorro_id;
 
 
-#define ZORRO_WILDCARD         (0xffffffff)    /* not official */
-
 /* Include the ID list */
 #include <linux/zorro_ids.h>
 
@@ -112,51 +108,13 @@ struct ConfigDev {
     __u32              cd_Unused[4];   /* for whatever the driver wants */
 } __attribute__ ((packed));
 
-#else /* __ASSEMBLY__ */
-
-LN_Succ                = 0
-LN_Pred                = LN_Succ+4
-LN_Type                = LN_Pred+4
-LN_Pri         = LN_Type+1
-LN_Name                = LN_Pri+1
-LN_sizeof      = LN_Name+4
-
-ER_Type                = 0
-ER_Product     = ER_Type+1
-ER_Flags       = ER_Product+1
-ER_Reserved03  = ER_Flags+1
-ER_Manufacturer        = ER_Reserved03+1
-ER_SerialNumber        = ER_Manufacturer+2
-ER_InitDiagVec = ER_SerialNumber+4
-ER_Reserved0c  = ER_InitDiagVec+2
-ER_Reserved0d  = ER_Reserved0c+1
-ER_Reserved0e  = ER_Reserved0d+1
-ER_Reserved0f  = ER_Reserved0e+1
-ER_sizeof      = ER_Reserved0f+1
-
-CD_Node                = 0
-CD_Flags       = CD_Node+LN_sizeof
-CD_Pad         = CD_Flags+1
-CD_Rom         = CD_Pad+1
-CD_BoardAddr   = CD_Rom+ER_sizeof
-CD_BoardSize   = CD_BoardAddr+4
-CD_SlotAddr    = CD_BoardSize+4
-CD_SlotSize    = CD_SlotAddr+2
-CD_Driver      = CD_SlotSize+2
-CD_NextCD      = CD_Driver+4
-CD_Unused      = CD_NextCD+4
-CD_sizeof      = CD_Unused+(4*4)
-
-#endif /* __ASSEMBLY__ */
-
-#ifndef __ASSEMBLY__
-
 #define ZORRO_NUM_AUTO         16
 
 #ifdef __KERNEL__
 
 #include <linux/init.h>
 #include <linux/ioport.h>
+#include <linux/mod_devicetable.h>
 
 #include <asm/zorro.h>
 
@@ -183,28 +141,9 @@ struct zorro_dev {
      *  Zorro bus
      */
 
-struct zorro_bus {
-    struct list_head devices;          /* list of devices on this bus */
-    unsigned int num_resources;                /* number of resources */
-    struct resource resources[4];      /* address space routed to this bus */
-    struct device dev;
-    char name[10];
-};
-
-extern struct zorro_bus zorro_bus;     /* single Zorro bus */
 extern struct bus_type zorro_bus_type;
 
 
-    /*
-     *  Zorro device IDs
-     */
-
-struct zorro_device_id {
-       zorro_id id;                    /* Device ID or ZORRO_WILDCARD */
-       unsigned long driver_data;      /* Data private to the driver */
-};
-
-
     /*
      *  Zorro device drivers
      */
@@ -290,7 +229,6 @@ extern DECLARE_BITMAP(zorro_unused_z2ram, 128);
 #define Z2RAM_CHUNKSHIFT       (16)
 
 
-#endif /* !__ASSEMBLY__ */
 #endif /* __KERNEL__ */
 
 #endif /* _LINUX_ZORRO_H */