Module Name: src
Committed By: ad
Date: Thu Sep 7 20:03:25 UTC 2023
Modified Files:
src/sys/dev/i2o: i2o.h
Log Message:
Remove unused I2O LAN class defs (the LAN driver was deleted years ago).
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/i2o/i2o.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/i2o/i2o.h
diff -u src/sys/dev/i2o/i2o.h:1.17 src/sys/dev/i2o/i2o.h:1.18
--- src/sys/dev/i2o/i2o.h:1.17 Mon May 30 09:56:04 2022
+++ src/sys/dev/i2o/i2o.h Thu Sep 7 20:03:25 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: i2o.h,v 1.17 2022/05/30 09:56:04 andvar Exp $ */
+/* $NetBSD: i2o.h,v 1.18 2023/09/07 20:03:25 ad Exp $ */
/*-
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -32,7 +32,8 @@
/*
* Structures and constants, as presented by the I2O specification revision
* 1.5 (obtainable from http://www.intelligent-io.com/). Currently, only
- * what's useful to us is defined in this file.
+ * what's useful to us is defined in this file. LAN defs used to be here
+ * but were removed as they're useless.
*/
#ifndef _I2O_I2O_H_
@@ -681,11 +682,6 @@ struct i2o_util_event_register_reply {
#define I2O_EVENT_EXEC_MODIFIED_LCT 0x00000200
#define I2O_EVENT_EXEC_DDM_AVAILIBILITY 0x00000400
-/* LAN class events. */
-#define I2O_EVENT_LAN_LINK_DOWN 0x00000001
-#define I2O_EVENT_LAN_LINK_UP 0x00000002
-#define I2O_EVENT_LAN_MEDIA_CHANGE 0x00000004
-
/*
* ================= Utility parameter groups =================
*/
@@ -1006,363 +1002,4 @@ struct i2o_param_scsi_device_info {
u_int64_t negsyncrate;
} __packed;
-/*
- * ================= LAN class messages =================
- */
-
-#define I2O_LAN_PACKET_SEND 0x3b
-struct i2o_lan_packet_send {
- u_int32_t msgflags;
- u_int32_t msgfunc;
- u_int32_t msgictx;
- u_int32_t tcw;
-
- /* SGL follows */
-} __packed;
-
-#define I2O_LAN_TCW_ACCESS_PRI_MASK 0x00000007
-#define I2O_LAN_TCW_SUPPRESS_CRC 0x00000008
-#define I2O_LAN_TCW_SUPPRESS_LOOPBACK 0x00000010
-#define I2O_LAN_TCW_CKSUM_NETWORK 0x00000020
-#define I2O_LAN_TCW_CKSUM_TRANSPORT 0x00000040
-#define I2O_LAN_TCW_REPLY_BATCH 0x00000000
-#define I2O_LAN_TCW_REPLY_IMMEDIATELY 0x40000000
-#define I2O_LAN_TCW_REPLY_UNSUCCESSFUL 0x80000000
-#define I2O_LAN_TCW_REPLY_NONE 0xc0000000
-
-#define I2O_LAN_SDU_SEND 0x3d
-struct i2o_lan_sdu_send {
- u_int32_t msgflags;
- u_int32_t msgfunc;
- u_int32_t msgictx;
- u_int32_t tcw; /* As per PACKET_SEND. */
-
- /* SGL follows */
-} __packed;
-
-struct i2o_lan_send_reply {
- u_int32_t msgflags;
- u_int32_t msgfunc;
- u_int32_t msgictx;
- u_int32_t trl;
- u_int16_t detail;
- u_int8_t reserved;
- u_int8_t reqstatus;
- u_int32_t tctx[1];
-} __packed;
-
-#define I2O_LAN_RECEIVE_POST 0x3e
-struct i2o_lan_receive_post {
- u_int32_t msgflags;
- u_int32_t msgfunc;
- u_int32_t msgictx;
- u_int32_t bktcnt;
-
- /* SGL follows */
-} __packed;
-
-struct i2o_lan_receive_reply {
- u_int32_t msgflags;
- u_int32_t msgfunc;
- u_int32_t msgictx;
- u_int8_t trlcount;
- u_int8_t trlesize;
- u_int8_t reserved;
- u_int8_t trlflags;
- u_int32_t bucketsleft;
-} __packed;
-
-#define I2O_LAN_RECEIVE_REPLY_PDB 0x80
-
-#define I2O_LAN_PDB_ERROR_NONE 0x00
-#define I2O_LAN_PDB_ERROR_BAD_CRC 0x01
-#define I2O_LAN_PDB_ERROR_ALIGNMENT 0x02
-#define I2O_LAN_PDB_ERROR_TOO_LONG 0x03
-#define I2O_LAN_PDB_ERROR_TOO_SHORT 0x04
-#define I2O_LAN_PDB_ERROR_RX_OVERRUN 0x05
-#define I2O_LAN_PDB_ERROR_L3_CKSUM_BAD 0x40
-#define I2O_LAN_PDB_ERROR_L4_CKSUM_BAD 0x80
-#define I2O_LAN_PDB_ERROR_CKSUM_MASK 0xc0
-#define I2O_LAN_PDB_ERROR_OTHER 0xff
-
-#define I2O_LAN_RESET 0x35
-struct i2o_lan_reset {
- u_int32_t msgflags;
- u_int32_t msgfunc;
- u_int32_t msgictx;
- u_int16_t reserved;
- u_int16_t resrcflags;
-} __packed;
-
-#define I2O_LAN_RESRC_RETURN_BUCKETS 0x0001
-#define I2O_LAN_RESRC_RETURN_XMITS 0x0002
-
-#define I2O_LAN_SUSPEND 0x37
-struct i2o_lan_suspend {
- u_int32_t msgflags;
- u_int32_t msgfunc;
- u_int32_t msgictx;
- u_int16_t reserved;
- u_int16_t resrcflags; /* As per RESET. */
-} __packed;
-
-#define I2O_LAN_DSC_SUCCESS 0x00
-#define I2O_LAN_DSC_DEVICE_FAILURE 0x01
-#define I2O_LAN_DSC_DESTINATION_NOT_FOUND 0x02
-#define I2O_LAN_DSC_TRANSMIT_ERROR 0x03
-#define I2O_LAN_DSC_TRANSMIT_ABORTED 0x04
-#define I2O_LAN_DSC_RECEIVE_ERROR 0x05
-#define I2O_LAN_DSC_RECEIVE_ABORTED 0x06
-#define I2O_LAN_DSC_DMA_ERROR 0x07
-#define I2O_LAN_DSC_BAD_PACKET_DETECTED 0x08
-#define I2O_LAN_DSC_OUT_OF_MEMORY 0x09
-#define I2O_LAN_DSC_BUCKET_OVERRUN 0x0a
-#define I2O_LAN_DSC_IOP_INTERNAL_ERROR 0x0b
-#define I2O_LAN_DSC_CANCELED 0x0c
-#define I2O_LAN_DSC_INVALID_TRANSACTION_CONTEXT 0x0d
-#define I2O_LAN_DSC_DEST_ADDRESS_DETECTED 0x0e
-#define I2O_LAN_DSC_DEST_ADDRESS_OMITTED 0x0f
-#define I2O_LAN_DSC_PARTIAL_PACKET_RETURNED 0x10
-#define I2O_LAN_DSC_TEMP_SUSPENDED_STATE 0x11
-
-/*
- * ================= LAN class parameter groups =================
- */
-
-#define I2O_PARAM_LAN_DEVICE_INFO 0x0000
-struct i2o_param_lan_device_info {
- u_int16_t lantype;
- u_int16_t flags;
- u_int8_t addrfmt;
- u_int8_t reserved1;
- u_int16_t reserved2;
- u_int32_t minpktsize;
- u_int32_t maxpktsize;
- u_int8_t hwaddr[8];
- u_int64_t maxtxbps;
- u_int64_t maxrxbps;
-} __packed;
-
-#define I2O_LAN_TYPE_ETHERNET 0x0030
-#define I2O_LAN_TYPE_100BASEVG 0x0040
-#define I2O_LAN_TYPE_TOKEN_RING 0x0050
-#define I2O_LAN_TYPE_FDDI 0x0060
-#define I2O_LAN_TYPE_FIBRECHANNEL 0x0070
-
-#define I2O_PARAM_LAN_MAC_ADDRESS 0x0001
-struct i2o_param_lan_mac_address {
- u_int8_t activeaddr[8];
- u_int8_t localaddr[8];
- u_int8_t addrmask[8];
- u_int32_t filtermask;
- u_int32_t hwfiltercaps;
- u_int32_t maxmcastaddr;
- u_int32_t maxfilterperfect;
- u_int32_t maxfilterimperfect;
-} __packed;
-
-#define I2O_PARAM_LAN_MAC_ADDRESS_activeaddr 0
-#define I2O_PARAM_LAN_MAC_ADDRESS_localaddr 1
-#define I2O_PARAM_LAN_MAC_ADDRESS_addrmask 2
-#define I2O_PARAM_LAN_MAC_ADDRESS_filtermask 3
-#define I2O_PARAM_LAN_MAC_ADDRESS_hwfiltercaps 4
-#define I2O_PARAM_LAN_MAC_ADDRESS_maxmcastaddr 5
-#define I2O_PARAM_LAN_MAC_ADDRESS_maxfilterperfect 6
-#define I2O_PARAM_LAN_MAC_ADDRESS_maxfilterimperfect 7
-
-#define I2O_LAN_FILTERMASK_UNICAST_DISABLE 0x0001
-#define I2O_LAN_FILTERMASK_PROMISC_ENABLE 0x0002
-#define I2O_LAN_FILTERMASK_PROMISC_MCAST_ENABLE 0x0004
-#define I2O_LAN_FILTERMASK_BROADCAST_DISABLE 0x0100
-#define I2O_LAN_FILTERMASK_MCAST_DISABLE 0x0200
-#define I2O_LAN_FILTERMASK_FUNCADDR_DISABLE 0x0400
-#define I2O_LAN_FILTERMASK_MACMODE_0 0x0800
-#define I2O_LAN_FILTERMASK_MACMODE_1 0x1000
-
-#define I2O_PARAM_LAN_MCAST_MAC_ADDRESS 0x0002
-/*
- * This one's a table, not a scalar.
- */
-
-#define I2O_PARAM_LAN_BATCH_CONTROL 0x0003
-struct i2o_param_lan_batch_control {
- u_int32_t batchflags;
- u_int32_t risingloaddly; /* 1.5 only */
- u_int32_t risingloadthresh; /* 1.5 only */
- u_int32_t fallingloaddly; /* 1.5 only */
- u_int32_t fallingloadthresh; /* 1.5 only */
- u_int32_t maxrxbatchcount;
- u_int32_t maxrxbatchdelay;
- u_int32_t maxtxbatchdelay; /* 2.0 (conflict with 1.5) */
- u_int32_t maxtxbatchcount; /* 2.0 only */
-} __packed;
-
-#define I2O_PARAM_LAN_BATCH_CONTROL_batchflags 0
-#define I2O_PARAM_LAN_BATCH_CONTROL_risingloaddly 1
-#define I2O_PARAM_LAN_BATCH_CONTROL_risingloadthresh 2
-#define I2O_PARAM_LAN_BATCH_CONTROL_fallingloaddly 3
-#define I2O_PARAM_LAN_BATCH_CONTROL_fallingloadthresh 4
-#define I2O_PARAM_LAN_BATCH_CONTROL_maxrxbatchcount 5
-#define I2O_PARAM_LAN_BATCH_CONTROL_maxrxbatchdelay 6
-#define I2O_PARAM_LAN_BATCH_CONTROL_maxtxbatchdelay 7
-#define I2O_PARAM_LAN_BATCH_CONTROL_maxtxbatchcount 8
-
-#define I2O_PARAM_LAN_OPERATION 0x0004
-struct i2o_param_lan_operation {
- u_int32_t pktprepad;
- u_int32_t userflags;
- u_int32_t pktorphanlimit;
- u_int32_t txmodesenable; /* 2.0 only */
- u_int32_t rxmodesenable; /* 2.0 only */
-} __packed;
-
-#define I2O_PARAM_LAN_OPERATION_pktprepad 0
-#define I2O_PARAM_LAN_OPERATION_userflags 1
-#define I2O_PARAM_LAN_OPERATION_pktorphanlimit 2
-#define I2O_PARAM_LAN_OPERATION_txmodesenable 3
-#define I2O_PARAM_LAN_OPERATION_rxmodesenable 4
-
-#define I2O_PARAM_LAN_MEDIA_OPERATION 0x0005
-struct i2o_param_lan_media_operation {
- u_int32_t connectortype;
- u_int32_t connectiontype;
- u_int32_t curtxbps;
- u_int32_t currxbps;
- u_int8_t fullduplex;
- u_int8_t linkstatus;
- u_int8_t badpkthandling; /* v1.5 only */
- u_int8_t duplextarget; /* v2.0 only */
- u_int32_t connectortarget; /* v2.0 only */
- u_int32_t connectiontarget; /* v2.0 only */
-} __packed;
-
-#define I2O_PARAM_LAN_MEDIA_OPERATION_connectortype 0
-#define I2O_PARAM_LAN_MEDIA_OPERATION_connectiontype 1
-#define I2O_PARAM_LAN_MEDIA_OPERATION_curtxbps 2
-#define I2O_PARAM_LAN_MEDIA_OPERATION_currxbps 3
-#define I2O_PARAM_LAN_MEDIA_OPERATION_fullduplex 4
-#define I2O_PARAM_LAN_MEDIA_OPERATION_linkstatus 5
-#define I2O_PARAM_LAN_MEDIA_OPERATION_badpkthandling 6
-#define I2O_PARAM_LAN_MEDIA_OPERATION_duplextarget 7
-#define I2O_PARAM_LAN_MEDIA_OPERATION_connectortarget 8
-#define I2O_PARAM_LAN_MEDIA_OPERATION_connectiontarget 9
-
-#define I2O_LAN_CONNECTOR_OTHER 0x00
-#define I2O_LAN_CONNECTOR_UNKNOWN 0x01
-#define I2O_LAN_CONNECTOR_AUI 0x02
-#define I2O_LAN_CONNECTOR_UTP 0x03
-#define I2O_LAN_CONNECTOR_BNC 0x04
-#define I2O_LAN_CONNECTOR_RJ45 0x05
-#define I2O_LAN_CONNECTOR_STP_DB9 0x06
-#define I2O_LAN_CONNECTOR_FIBER_MIC 0x07
-#define I2O_LAN_CONNECTOR_APPLE_AUI 0x08
-#define I2O_LAN_CONNECTOR_MII 0x09
-#define I2O_LAN_CONNECTOR_COPPER_DB9 0x0a
-#define I2O_LAN_CONNECTOR_COPPER_AW 0x0b
-#define I2O_LAN_CONNECTOR_OPTICAL_LW 0x0c
-#define I2O_LAN_CONNECTOR_SIP 0x0d
-#define I2O_LAN_CONNECTOR_OPTICAL_SW 0x0e
-
-#define I2O_LAN_CONNECTION_UNKNOWN 0x0000
-
-#define I2O_LAN_CONNECTION_ETHERNET_AUI 0x0301
-#define I2O_LAN_CONNECTION_ETHERNET_10BASE5 0x0302
-#define I2O_LAN_CONNECTION_ETHERNET_FOIRL 0x0303
-#define I2O_LAN_CONNECTION_ETHERNET_10BASE2 0x0304
-#define I2O_LAN_CONNECTION_ETHERNET_10BROAD36 0x0305
-#define I2O_LAN_CONNECTION_ETHERNET_10BASET 0x0306
-#define I2O_LAN_CONNECTION_ETHERNET_10BASEFP 0x0307
-#define I2O_LAN_CONNECTION_ETHERNET_10BASEFB 0x0308
-#define I2O_LAN_CONNECTION_ETHERNET_10BASEFL 0x0309
-#define I2O_LAN_CONNECTION_ETHERNET_100BASETX 0x030a
-#define I2O_LAN_CONNECTION_ETHERNET_100BASEFX 0x030b
-#define I2O_LAN_CONNECTION_ETHERNET_100BASET4 0x030c
-#define I2O_LAN_CONNECTION_ETHERNET_1000BASESX 0x030d
-#define I2O_LAN_CONNECTION_ETHERNET_1000BASELX 0x030e
-#define I2O_LAN_CONNECTION_ETHERNET_1000BASECX 0x030f
-#define I2O_LAN_CONNECTION_ETHERNET_1000BASET 0x0310
-
-#define I2O_LAN_CONNECTION_100BASEVG_ETHERNET 0x0401
-#define I2O_LAN_CONNECTION_100BASEVG_TOKEN_RING 0x0402
-
-#define I2O_LAN_CONNECTION_TOKEN_RING_4MBIT 0x0501
-#define I2O_LAN_CONNECTION_TOKEN_RING_16MBIT 0x0502
-
-#define I2O_LAN_CONNECTION_FDDI_125MBIT 0x0601
-
-#define I2O_LAN_CONNECTION_FIBRECHANNEL_P2P 0x0701
-#define I2O_LAN_CONNECTION_FIBRECHANNEL_AL 0x0702
-#define I2O_LAN_CONNECTION_FIBRECHANNEL_PL 0x0703
-#define I2O_LAN_CONNECTION_FIBRECHANNEL_F 0x0704
-
-#define I2O_LAN_CONNECTION_OTHER_EMULATED 0x0f00
-#define I2O_LAN_CONNECTION_OTHER_OTHER 0x0f01
-
-#define I2O_LAN_CONNECTION_DEFAULT 0xffffffff
-
-#define I2O_PARAM_LAN_TRANSMIT_INFO 0x0007
-struct i2o_param_lan_transmit_info {
- u_int32_t maxpktsg;
- u_int32_t maxchainsg;
- u_int32_t maxoutstanding;
- u_int32_t maxpktsout;
- u_int32_t maxpktsreq;
- u_int32_t txmodes;
-} __packed;
-
-#define I2O_LAN_MODES_NO_DA_IN_SGL 0x0002
-#define I2O_LAN_MODES_CRC_SUPPRESSION 0x0004
-#define I2O_LAN_MODES_LOOPBACK_SUPPRESSION 0x0004 /* 1.5 only */
-#define I2O_LAN_MODES_FCS_RECEPTION 0x0008 /* 2.0 only */
-#define I2O_LAN_MODES_MAC_INSERTION 0x0010
-#define I2O_LAN_MODES_RIF_INSERTION 0x0020
-#define I2O_LAN_MODES_IPV4_CHECKSUM 0x0100 /* 2.0 only */
-#define I2O_LAN_MODES_TCP_CHECKSUM 0x0200 /* 2.0 only */
-#define I2O_LAN_MODES_UDP_CHECKSUM 0x0400 /* 2.0 only */
-#define I2O_LAN_MODES_RSVP_CHECKSUM 0x0800 /* 2.0 only */
-#define I2O_LAN_MODES_ICMP_CHECKSUM 0x1000 /* 2.0 only */
-
-#define I2O_PARAM_LAN_RECEIVE_INFO 0x0008
-struct i2o_param_lan_receive_info {
- u_int32_t maxchain;
- u_int32_t maxbuckets;
-} __packed;
-
-#define I2O_PARAM_LAN_STATS 0x0009
-struct i2o_param_lan_stats {
- u_int64_t opackets;
- u_int64_t obytes;
- u_int64_t ipackets;
- u_int64_t oerrors;
- u_int64_t ierrors;
- u_int64_t rxnobuffer;
- u_int64_t resetcount;
-} __packed;
-
-#define I2O_PARAM_LAN_802_3_STATS 0x0200
-struct i2o_param_lan_802_3_stats {
- u_int64_t alignmenterror;
- u_int64_t onecollision;
- u_int64_t manycollisions;
- u_int64_t deferred;
- u_int64_t latecollision;
- u_int64_t maxcollisions;
- u_int64_t carrierlost;
- u_int64_t excessivedeferrals;
-} __packed;
-
-#define I2O_PARAM_LAN_FDDI_STATS 0x0400
-struct i2o_param_lan_fddi_stats {
- u_int64_t configstate;
- u_int64_t upstreamnode;
- u_int64_t downstreamnode;
- u_int64_t frameerrors;
- u_int64_t frameslost;
- u_int64_t ringmgmtstate;
- u_int64_t lctfailures;
- u_int64_t lemrejects;
- u_int64_t lemcount;
- u_int64_t lconnectionstate;
-} __packed;
-
#endif /* !defined _I2O_I2O_H_ */