diff options
Diffstat (limited to 'sys/dev/hfa/fore.h')
-rw-r--r-- | sys/dev/hfa/fore.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/sys/dev/hfa/fore.h b/sys/dev/hfa/fore.h index 5b43cae..16d6dd3 100644 --- a/sys/dev/hfa/fore.h +++ b/sys/dev/hfa/fore.h @@ -68,7 +68,6 @@ #define BUF_DATA_ALIGN 4 /* Fore-required data alignment */ -#if defined(BSD) /* * Strategy 1 Small - mbuf * Strategy 1 Large - cluster mbuf @@ -80,7 +79,6 @@ */ #define SIZEOF_Buf_handle 16 /* XXX sizeof(Buf_handle) */ -#if BSD >= 199103 #undef m_ext typedef struct m_ext M_ext; #define m_ext M_dat.MH.MH_dat.MH_ext @@ -89,13 +87,6 @@ typedef struct m_ext M_ext; #define BUF1_SM_LEN (MHLEN) #define BUF1_LG_HOFF (sizeof(struct m_hdr) + sizeof(struct pkthdr) \ + sizeof(M_ext)) /* Buffer-to-handle offset */ -#else -#define BUF1_SM_HOFF (MMINOFF) /* Buffer-to-handle offset */ -#define BUF1_SM_HDR (MMINOFF) -#define BUF1_SM_LEN (MLEN) -#define BUF1_LG_HOFF (MMINOFF + 16) /* Buffer-to-handle offset */ -#endif - /* * BUF1_SM_DOFF - CP data offset into buffer data space * BUF1_SM_SIZE - Buffer size @@ -107,18 +98,8 @@ typedef struct m_ext M_ext; * #define BUF1_SM_SIZE MAX(BUF1_SM_LEN - BUF1_SM_DOFF, 64) * */ -#if ((BSD >= 199103) && defined(FORE_PCI)) #define BUF1_SM_DOFF ((BUF1_SM_HOFF + SIZEOF_Buf_handle) - BUF1_SM_HDR) #define BUF1_SM_SIZE (BUF1_SM_LEN - BUF1_SM_DOFF) -#endif -#if ((BSD < 199103) && defined(FORE_SBUS) && defined(sun4c)) -#define BUF1_SM_DOFF (BUF_DATA_ALIGN - BUF1_SM_HDR) -#define BUF1_SM_SIZE (BUF1_SM_LEN - BUF1_SM_DOFF) -#endif -#if ((BSD < 199103) && defined(FORE_SBUS) && defined(sun4m)) -#define BUF1_SM_DOFF (BUF_DATA_ALIGN - BUF1_SM_HDR) -#define BUF1_SM_SIZE (64) -#endif #define BUF1_SM_QUELEN 16 /* Entries in supply queue */ #define BUF1_SM_CPPOOL 256 /* Buffers in CP-resident pool */ @@ -130,6 +111,4 @@ typedef struct m_ext M_ext; #define BUF1_LG_CPPOOL 512 /* Buffers in CP-resident pool */ #define BUF1_LG_ENTSIZE 8 /* Buffers in each supply queue entry */ -#endif /* defined(BSD) */ - #endif /* _FORE_H */ |