diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-04-15 16:30:45 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-04-15 16:30:45 +0000 |
commit | 1219c35e365ab66a18d84dc6866637c26a6bce3b (patch) | |
tree | 29af1787c959daae60478afad6b6965db6d9843f | |
parent | fafe12b264b5566f2d05f7829cbf618331845452 (diff) |
Add defines for Rx page size register.
-rw-r--r-- | sys/dev/pci/if_casreg.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/dev/pci/if_casreg.h b/sys/dev/pci/if_casreg.h index dce12811652..1fd0538e4de 100644 --- a/sys/dev/pci/if_casreg.h +++ b/sys/dev/pci/if_casreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_casreg.h,v 1.3 2007/02/27 21:45:35 kettenis Exp $ */ +/* $OpenBSD: if_casreg.h,v 1.4 2007/04/15 16:30:44 kettenis Exp $ */ /* * @@ -180,7 +180,6 @@ /* RX DMA registers */ #define CAS_RX_CONFIG 0x4000 #define CAS_RX_PAGE_SIZE 0x4004 - #define CAS_RX_FIFO_WR_PTR 0x4008 /* FIFO write pointer */ #define CAS_RX_FIFO_RD_PTR 0x400c /* FIFO read pointer */ #define CAS_RX_IPPFIFO_WR_PTR 0x4010 /* IPP FIFO write pointer */ @@ -218,6 +217,16 @@ #define CAS_RX_CONFIG_RXCRNG_SZ_SHIFT 5 #define CAS_RX_CONFIG_FBOFF_SHFT 10 +/* CAS_RX_PAGE_SIZE register bits. */ +#define CAS_RX_PAGE_SIZE_SZ 0x00000003 /* Page size */ +#define CAS_RX_PAGE_SIZE_COUNT 0x00007800 /* MTU buffers per page */ +#define CAS_RX_PAGE_SIZE_STRIDE 0x18000000 /* MTU buffer seperation */ +#define CAS_RX_PAGE_SIZE_FBOFF 0xc0000000 /* Firts byte offset */ + +#define CAS_RX_PAGE_SIZE_COUNT_SHIFT 11 +#define CAS_RX_PAGE_SIZE_STRIDE_SHIFT 27 +#define CAS_RX_PAGE_SIZE_FBOFF_SHIFT 30 + /* CAS_RX_PAUSE_THRESH register bits -- sizes in multiples of 64 bytes */ #define CAS_RX_PTH_XOFF_THRESH 0x000001ff #define CAS_RX_PTH_XON_THRESH 0x07fc0000 |