These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / staging / slicoss / slic.h
index 3a5aa88..c95b3ab 100644 (file)
@@ -56,11 +56,6 @@ static u32 OasisRcvUCodeLen = 512;
 static u32 GBRcvUCodeLen = 512;
 #define SECTION_SIZE 65536
 
-struct slic_spinlock {
-       spinlock_t      lock;
-       unsigned long   flags;
-};
-
 #define SLIC_RSPQ_PAGES_GB        10
 #define SLIC_RSPQ_BUFSINPAGE      (PAGE_SIZE / SLIC_RSPBUF_SIZE)
 
@@ -98,10 +93,10 @@ struct slic_rcvbuf_info {
        u32     lastid;
 };
 /*
- SLIC Handle structure.  Used to restrict handle values to
- 32 bits by using an index rather than an address.
- Simplifies ucode in 64-bit systems
-*/
SLIC Handle structure.  Used to restrict handle values to
32 bits by using an index rather than an address.
Simplifies ucode in 64-bit systems
+ */
 struct slic_handle_word {
        union {
                struct {
@@ -165,13 +160,12 @@ struct slic_cmdqueue {
        struct slic_hostcmd *head;
        struct slic_hostcmd *tail;
        int count;
-       struct slic_spinlock lock;
+       spinlock_t lock;
 };
 
 #define SLIC_MAX_CARDS              32
 #define SLIC_MAX_PORTS              4        /* Max # of ports per card   */
 
-
 struct mcast_address {
        unsigned char address[6];
        struct mcast_address *next;
@@ -339,14 +333,15 @@ struct physcard {
        struct physcard *next;
        uint                adapters_allocd;
 
-/*  the following is not currently needed
-       u32              bridge_busnum;
-       u32              bridge_cfg[NUM_CFG_SPACES][NUM_CFG_REG_ULONGS];
-*/
+/*
+ * the following is not currently needed
+ *     u32              bridge_busnum;
+ *     u32              bridge_cfg[NUM_CFG_SPACES][NUM_CFG_REG_ULONGS];
+ */
 };
 
 struct base_driver {
-       struct slic_spinlock driver_lock;
+       spinlock_t       driver_lock;
        u32              num_slic_cards;
        u32              num_slic_ports;
        u32              num_slic_ports_active;
@@ -401,8 +396,8 @@ struct adapter {
        uint                card_size;
        uint                chipid;
        struct net_device  *netdev;
-       struct slic_spinlock     adapter_lock;
-       struct slic_spinlock     reset_lock;
+       spinlock_t          adapter_lock;
+       spinlock_t          reset_lock;
        struct pci_dev     *pcidev;
        uint                busnumber;
        uint                slotnumber;
@@ -419,7 +414,6 @@ struct adapter {
        u32             intrregistered;
        uint                isp_initialized;
        uint                gennumber;
-       u32             curaddrupper;
        struct slic_shmem      *pshmem;
        dma_addr_t          phys_shmem;
        u32             isrcopy;
@@ -441,8 +435,8 @@ struct adapter {
        u32             pingtimerset;
        struct timer_list   loadtimer;
        u32             loadtimerset;
-       struct slic_spinlock     upr_lock;
-       struct slic_spinlock     bit64reglock;
+       spinlock_t               upr_lock;
+       spinlock_t               bit64reglock;
        struct slic_rspqueue     rspqueue;
        struct slic_rcvqueue     rcvqueue;
        struct slic_cmdqueue     cmdq_free;
@@ -453,11 +447,11 @@ struct adapter {
        *  SLIC Handles
        */
        /* Object handles*/
-       struct slic_handle slic_handles[SLIC_CMDQ_MAXCMDS+1];
+       struct slic_handle slic_handles[SLIC_CMDQ_MAXCMDS + 1];
        /* Free object handles*/
        struct slic_handle *pfree_slic_handles;
        /* Object handle list lock*/
-       struct slic_spinlock     handle_lock;
+       spinlock_t          handle_lock;
        ushort              slic_handle_ix;
 
        u32             xmitq_full;
@@ -491,7 +485,6 @@ struct adapter {
        struct slicnet_stats     slic_stats;
 };
 
-
 #define UPDATE_STATS(largestat, newstat, oldstat)                        \
 {                                                                        \
        if ((newstat) < (oldstat))                                       \
@@ -520,8 +513,6 @@ struct adapter {
 #define FLUSH          true
 #define DONT_FLUSH     false
 
-#define SIOCSLICDUMPCARD         (SIOCDEVPRIVATE+9)
-#define SIOCSLICSETINTAGG        (SIOCDEVPRIVATE+10)
-#define SIOCSLICTRACEDUMP        (SIOCDEVPRIVATE+11)
+#define SIOCSLICSETINTAGG        (SIOCDEVPRIVATE + 10)
 
 #endif /*  __SLIC_DRIVER_H__ */