benet: hardware host interface header files
Subsystems (2)
PATCH 7/11 benet: hardware host interface header files
Signed-off-by Sathya Perla <[email protected]>
--- drivers/net/benet/asyncmesg.h | 82 +++++++++++++++++++++ drivers/net/benet/be_cm.h | 134 ++++++++++++++++++++++++++++++++++ drivers/net/benet/be_common.h | 53 +++++++++++++ drivers/net/benet/descriptors.h | 71 ++++++++++++++++++ drivers/net/benet/ep.h | 66 +++++++++++++++++ drivers/net/benet/etx_context.h | 55 ++++++++++++++ drivers/net/benet/fwcmd_hdr_bmap.h | 54 ++++++++++++++ drivers/net/benet/fwcmd_mcc.h | 94 ++++++++++++++++++++++++ drivers/net/benet/fwcmd_types_bmap.h | 29 +++++++ drivers/net/benet/mpu.h | 74 +++++++++++++++++++ drivers/net/benet/mpu_context.h | 46 ++++++++++++ drivers/net/benet/regmap.h | 68 +++++++++++++++++ 12 files changed, 826 insertions(+), 0 deletions(-) create mode 100644 drivers/net/benet/asyncmesg.h create mode 100644 drivers/net/benet/be_cm.h create mode 100644 drivers/net/benet/be_common.h create mode 100644 drivers/net/benet/descriptors.h create mode 100644 drivers/net/benet/ep.h create mode 100644 drivers/net/benet/etx_context.h create mode 100644 drivers/net/benet/fwcmd_hdr_bmap.h create mode 100644 drivers/net/benet/fwcmd_mcc.h create mode 100644 drivers/net/benet/fwcmd_types_bmap.h create mode 100644 drivers/net/benet/mpu.h create mode 100644 drivers/net/benet/mpu_context.h create mode 100644 drivers/net/benet/regmap.h
drivers/net/benet/asyncmesg.h new file +82 -0
@@ -0,0 +1,82 @@ +/* +* Copyright (C) 2005 - 2008 ServerEngines +* All rights reserved. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License version 2 +* as published by the Free Software Foundation. The full GNU General +* Public License is included in this distribution in the file called COPYING. +* +* Contact Information: +* [email protected] +* +* ServerEngines +* 209 N. Fair Oaks Ave +* Sunnyvale, CA 94085 +*/ +/* +* Autogenerated by srcgen version: 0127 +*/ +#ifndef __asyncmesg_amap_h__ +#define __asyncmesg_amap_h__ +#include "fwcmd_common.h" + +/* --- ASYNC_EVENT_CODES --- */ +#define ASYNC_EVENT_CODE_LINK_STATE (1) +#define ASYNC_EVENT_CODE_ISCSI (2) + +/* --- ASYNC_LINK_STATES --- */ +#define ASYNC_EVENT_LINK_DOWN (0)/* Link Down on a port */ +#define ASYNC_EVENT_LINK_UP (1)/* Link Up on a port */ + +/* +* The last 4 bytes of the async events have this common format. It allows +* the driver to distinguish [link]MCC_CQ_ENTRY[/link] structs from +* asynchronous events. Both arrive on the same completion queue. This +* structure also contains the common fields used to decode the async event. +*/ +struct BE_ASYNC_EVENT_TRAILER_AMAP { +u8 rsvd0[8 ];/* DWORD 0 */ +u8 event_code[8 ];/* DWORD 0 */ +u8 event_type[8 ];/* DWORD 0 */ +u8 rsvd1[6 ];/* DWORD 0 */ +u8 async_event;/* DWORD 0 */ +u8 valid;/* DWORD 0 */ +} __packed; +struct ASYNC_EVENT_TRAILER_AMAP { +u32 dw[1 ]; +}; + +/* +* Applicable in Initiator, Target and NIC modes. +* A link state async event is seen by all device drivers as soon they +* create an MCC ring. Thereafter, anytime the link status changes the +* drivers will receive a link state async event. Notifications continue to +* be sent until a driver destroys its MCC ring. A link down event is +* reported when either port loses link. A link up event is reported +* when either port regains link. When BE's failover mechanism is enabled, a +* link down on the active port causes traffic to be diverted to the standby +* port by the BE's ARM firmware (assuming the standby port has link). In +* this case, the standy port assumes the active status. Note: when link is +* restored on the failed port, traffic continues on the currently active +* port. The ARM firmware does not attempt to 'fail back' traffic to +* the restored port. +*/ +struct BE_ASYNC_EVENT_LINK_STATE_AMAP { +u8 port0_link_status[8 ]; +u8 port1_link_status[8 ]; +u8 active_port[8 ]; +u8 rsvd0[8 ];/* DWORD 0 */ +u8 port0_duplex[8 ]; +u8 port0_speed[8 ]; +u8 port1_duplex[8 ]; +u8 port1_speed[8 ]; +u8 port0_fault[8 ]; +u8 port1_fault[8 ]; +u8 rsvd1[2 ][8 ];/* DWORD 2 */ +struct BE_ASYNC_EVENT_TRAILER_AMAP trailer; +} __packed; +struct ASYNC_EVENT_LINK_STATE_AMAP { +u32 dw[4 ]; +}; +#endif /* __asyncmesg_amap_h__ */
drivers/net/benet/be_cm.h new file +134 -0
134 lines not on this page · raw message
drivers/net/benet/be_common.h new file +53 -0
53 lines not on this page · raw message
drivers/net/benet/descriptors.h new file +71 -0
71 lines not on this page · raw message
drivers/net/benet/ep.h new file +66 -0
66 lines not on this page · raw message
drivers/net/benet/etx_context.h new file +55 -0
55 lines not on this page · raw message
drivers/net/benet/fwcmd_hdr_bmap.h new file +54 -0
54 lines not on this page · raw message
drivers/net/benet/fwcmd_mcc.h new file +94 -0
94 lines not on this page · raw message
drivers/net/benet/fwcmd_types_bmap.h new file +29 -0
@@ -0,0 +1,29 @@ +/* +* Copyright (C) 2005 - 2008 ServerEngines +* All rights reserved. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License version 2 +* as published by the Free Software Foundation. The full GNU General +* Public License is included in this distribution in the file called COPYING. +* +* Contact Information: +* [email protected] +* +* ServerEngines +* 209 N. Fair Oaks Ave +* Sunnyvale, CA 94085 +*/ +/* +* Autogenerated by srcgen version: 0127 +*/ +#ifndef __fwcmd_types_bmap_h__ +#define __fwcmd_types_bmap_h__ + +/* MAC address format */ +struct MAC_ADDRESS_FORMAT { +u16 SizeOfStructure; +u8 MACAddress[6 ]; +} __packed; + +#endif /* __fwcmd_types_bmap_h__ */
drivers/net/benet/mpu.h new file +74 -0
74 lines not on this page · raw message
drivers/net/benet/mpu_context.h new file +46 -0
46 lines not on this page · raw message
drivers/net/benet/regmap.h new file +68 -0
68 lines not on this page · raw message
Signature · 12 lines
1.5.5 ___________________________________________________________________________________ This message, together with any attachment(s), contains confidential and proprietary information of ServerEngines Corporation and is intended only for the designated recipient(s) named above. Any unauthorized review, printing, retention, copying, disclosure or distribution is strictly prohibited. If you are not the intended recipient of this message, please immediately advise the sender by reply email message and delete all copies of this message and any attachment(s). Thank you.