Print this page
XXXX introduce drv_sectohz


  61 
  62 char    ident[] = "sis900/dp83815 driver v" "2.6.1t30os";
  63 
  64 /* Debugging support */
  65 #ifdef DEBUG_LEVEL
  66 static int sfe_debug = DEBUG_LEVEL;
  67 #if DEBUG_LEVEL > 4
  68 #define CONS    "^"
  69 #else
  70 #define CONS    "!"
  71 #endif
  72 #define DPRINTF(n, args)        if (sfe_debug > (n)) cmn_err args
  73 #else
  74 #define CONS    "!"
  75 #define DPRINTF(n, args)
  76 #endif
  77 
  78 /*
  79  * Useful macros and typedefs
  80  */
  81 #define ONESEC          (drv_usectohz(1*1000000))
  82 #define ROUNDUP2(x, a)  (((x) + (a) - 1) & ~((a) - 1))
  83 
  84 /*
  85  * Our configuration
  86  */
  87 #define MAXTXFRAGS      1
  88 #define MAXRXFRAGS      1
  89 
  90 #ifndef TX_BUF_SIZE
  91 #define TX_BUF_SIZE     64
  92 #endif
  93 #ifndef TX_RING_SIZE
  94 #if MAXTXFRAGS == 1
  95 #define TX_RING_SIZE    TX_BUF_SIZE
  96 #else
  97 #define TX_RING_SIZE    (TX_BUF_SIZE * 4)
  98 #endif
  99 #endif
 100 
 101 #ifndef RX_BUF_SIZE




  61 
  62 char    ident[] = "sis900/dp83815 driver v" "2.6.1t30os";
  63 
  64 /* Debugging support */
  65 #ifdef DEBUG_LEVEL
  66 static int sfe_debug = DEBUG_LEVEL;
  67 #if DEBUG_LEVEL > 4
  68 #define CONS    "^"
  69 #else
  70 #define CONS    "!"
  71 #endif
  72 #define DPRINTF(n, args)        if (sfe_debug > (n)) cmn_err args
  73 #else
  74 #define CONS    "!"
  75 #define DPRINTF(n, args)
  76 #endif
  77 
  78 /*
  79  * Useful macros and typedefs
  80  */
  81 #define ONESEC          drv_sectohz(1)
  82 #define ROUNDUP2(x, a)  (((x) + (a) - 1) & ~((a) - 1))
  83 
  84 /*
  85  * Our configuration
  86  */
  87 #define MAXTXFRAGS      1
  88 #define MAXRXFRAGS      1
  89 
  90 #ifndef TX_BUF_SIZE
  91 #define TX_BUF_SIZE     64
  92 #endif
  93 #ifndef TX_RING_SIZE
  94 #if MAXTXFRAGS == 1
  95 #define TX_RING_SIZE    TX_BUF_SIZE
  96 #else
  97 #define TX_RING_SIZE    (TX_BUF_SIZE * 4)
  98 #endif
  99 #endif
 100 
 101 #ifndef RX_BUF_SIZE