lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 14 Oct 2007 09:58:34 +0200 From: Domen Puncer <domen.puncer@...argo.com> To: galak@...nel.crashing.org, jgarzik@...ox.com Cc: linuxppc-dev@...abs.org, grant.likely@...retlab.ca, tnt@...tnt.com, netdev@...r.kernel.org Subject: [PATCH v3 2/4] FEC mpc52xx: add some bestcomm flags Add masks and fix existing ones to match mpc5200b user's manual. Signed-off-by: Domen Puncer <domen.puncer@...argo.com> --- arch/powerpc/sysdev/bestcomm/fec.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) Index: linux.git/arch/powerpc/sysdev/bestcomm/fec.h =================================================================== --- linux.git.orig/arch/powerpc/sysdev/bestcomm/fec.h +++ linux.git/arch/powerpc/sysdev/bestcomm/fec.h @@ -21,7 +21,20 @@ struct bcom_fec_bd { }; #define BCOM_FEC_TX_BD_TFD 0x08000000ul /* transmit frame done */ -#define BCOM_FEC_TX_BD_INT 0x04000000ul /* interrupt */ +#define BCOM_FEC_TX_BD_TC 0x04000000ul /* transmit CRC */ +#define BCOM_FEC_TX_BD_ABC 0x02000000ul /* append bad CRC */ + +#define BCOM_FEC_RX_BD_L 0x08000000ul /* buffer is last in frame */ +#define BCOM_FEC_RX_BD_BC 0x00800000ul /* DA is broadcast */ +#define BCOM_FEC_RX_BD_MC 0x00400000ul /* DA is multicast and not broadcast */ +#define BCOM_FEC_RX_BD_LG 0x00200000ul /* Rx frame length violation */ +#define BCOM_FEC_RX_BD_NO 0x00100000ul /* Rx non-octet aligned frame */ +#define BCOM_FEC_RX_BD_CR 0x00040000ul /* Rx CRC error */ +#define BCOM_FEC_RX_BD_OV 0x00020000ul /* overrun */ +#define BCOM_FEC_RX_BD_TR 0x00010000ul /* Rx frame truncated */ +#define BCOM_FEC_RX_BD_LEN_MASK 0x000007fful /* mask for length of received frame */ +#define BCOM_FEC_RX_BD_ERRORS (BCOM_FEC_RX_BD_LG | BCOM_FEC_RX_BD_NO | \ + BCOM_FEC_RX_BD_CR | BCOM_FEC_RX_BD_OV | BCOM_FEC_RX_BD_TR) extern struct bcom_task * - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists