diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-05-23 22:44:21 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-05-23 22:44:21 +0000 |
commit | 50aaf2ae990b7e1ae83950552f80c26675cb8b2d (patch) | |
tree | 7b76455be77bdd663278e1aeca859bd629294b33 /sys/dev/pci/if_stgereg.h | |
parent | d271a729d5c3db995ecffe07f81a5bd8771aec60 (diff) |
- Fix some big-endian issues.
- Centralize the interrupt bits for the 3 registers where they are being used.
- Replace magic numbers for power management control with PCI_PMCSR* macros.
- The flow control registers are 16 bits wide, not 32.
- Create the Tx DMA maps with a size large enough for a jumbo Ethernet frame.
- Oops, make Rx interrupt deferral actually work.
From NetBSD
Diffstat (limited to 'sys/dev/pci/if_stgereg.h')
-rw-r--r-- | sys/dev/pci/if_stgereg.h | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/sys/dev/pci/if_stgereg.h b/sys/dev/pci/if_stgereg.h index c3c1ea10b54..55f2b820023 100644 --- a/sys/dev/pci/if_stgereg.h +++ b/sys/dev/pci/if_stgereg.h @@ -1,4 +1,5 @@ -/* $OpenBSD: if_stgereg.h,v 1.3 2004/10/03 08:52:44 grange Exp $ */ +/* $OpenBSD: if_stgereg.h,v 1.4 2005/05/23 22:44:20 brad Exp $ */ +/* $NetBSD: if_stgereg.h,v 1.3 2003/02/10 21:10:07 christos Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -61,7 +62,7 @@ struct stge_frag { /* * TC9021 Transmit Frame Descriptor. Note the number of fragments - * here is arbitrary, but we can't have any more than than 15. + * here is arbitrary, but we can't have any more than 15. */ #define STGE_NTXFRAGS 12 struct stge_tfd { @@ -250,22 +251,23 @@ struct stge_rfd { #define STGE_IntStatusAck 0x5a /* 16-bit */ +#define STGE_IntStatus 0x5e /* 16-bit */ + #define STGE_IntEnable 0x5c /* 16-bit */ -#define IE_HostError (1U << 1) -#define IE_TxComplete (1U << 2) -#define IE_MACControlFrame (1U << 3) -#define IE_RxComplete (1U << 4) -#define IE_RxEarly (1U << 5) -#define IE_InRequested (1U << 6) -#define IE_UpdateStats (1U << 7) -#define IE_LinkEvent (1U << 8) -#define IE_TxDMAComplete (1U << 9) -#define IE_RxDMAComplete (1U << 10) -#define IE_RFDListEnd (1U << 11) -#define IE_RxDMAPriority (1U << 12) -#define STGE_IntStatus 0x5e /* 16-bit */ #define IS_InterruptStatus (1U << 0) +#define IS_HostError (1U << 1) +#define IS_TxComplete (1U << 2) +#define IS_MACControlFrame (1U << 3) +#define IS_RxComplete (1U << 4) +#define IS_RxEarly (1U << 5) +#define IS_InRequested (1U << 6) +#define IS_UpdateStats (1U << 7) +#define IS_LinkEvent (1U << 8) +#define IS_TxDMAComplete (1U << 9) +#define IS_RxDMAComplete (1U << 10) +#define IS_RFDListEnd (1U << 11) +#define IS_RxDMAPriority (1U << 12) #define STGE_TxStatus 0x60 #define TS_TxError (1U << 0) |