Changeset 273 for freebsd-mos-driver/if_mosreg.h
- Timestamp:
- Feb 13, 2011, 2:54:18 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freebsd-mos-driver/if_mosreg.h
r176 r273 1 /* $OpenBSD: if_mosreg.h,v 1.3 2008/11/22 09:46:12 deraadt Exp $ */ 2 /* 3 * Copyright (c) 2010 Rick van der Zwet <info@rickvanderzwet.nl> 1 /*- 2 * Copyright (c) 2010, 2011 Rick van der Zwet <info@rickvanderzwet.nl> 4 3 * 5 4 * Permission to use, copy, modify, and distribute this software for any … … 16 15 */ 17 16 18 /* 17 /*- 19 18 * Copyright (c) 2008 Johann Christian Rode <jcrode@gmx.net> 20 19 * … … 32 31 */ 33 32 34 /* 33 /*- 35 34 * Copyright (c) 1997, 1998, 1999, 2000-2003 36 35 * Bill Paul <wpaul@windriver.com>. All rights reserved. … … 151 150 #define MOS_IFACE_IDX 0 152 151 153 //struct mos_type {154 // struct usb_devno mos_dev;155 // u_int16_t mos_flags;156 152 #define MCS7730 0x0001 /* MCS7730 */ 157 153 #define MCS7830 0x0002 /* MCS7830 */ 158 //};159 154 160 155 #define MOS_INC(x, y) (x) = (x + 1) % y 161 162 //struct mos_softc;163 //164 struct mos_chain {165 char *mos_buf;166 struct mbuf *mos_mbuf;167 int mos_accum;168 int mos_idx;169 };170 //171 //struct mos_cdata {172 // struct mos_chain mos_tx_chain[MOS_TX_LIST_CNT];173 // struct mos_chain mos_rx_chain[MOS_RX_LIST_CNT];174 // int mos_tx_prod;175 // int mos_tx_cons;176 // int mos_tx_cnt;177 // int mos_rx_prod;178 //};179 156 180 157 struct mos_softc { … … 182 159 struct ifnet ifp; 183 160 184 // struct device mos_dev;185 //#define GET_MII(sc) (&(sc)->mos_mii)186 //#define GET_IFP(sc) (&(sc)->arpcom.ac_if)187 // struct mii_data mos_mii;188 // usbd_device_handle mos_udev;189 // usbd_interface_handle mos_iface;190 191 161 u_int16_t mos_flags; 192 193 // int mos_ed[MOS_ENDPT_MAX];194 // usbd_pipe_handle mos_ep[MOS_ENDPT_MAX];195 int mos_unit;196 int mos_if_flags;197 // struct mos_cdata mos_cdata;198 // struct timeout mos_stat_ch;199 200 int mos_refcnt;201 char mos_dying;202 char mos_attached;203 162 204 163 int mos_link; 205 164 unsigned char mos_ipgs[2]; 206 165 unsigned char mos_phyaddrs[2]; 207 struct timeval mos_rx_notice;208 209 u_int16_t mos_tspeed;210 u_int16_t mos_maxpacket;211 212 // struct usb_task mos_tick_task;213 // struct usb_task mos_stop_task;214 215 166 216 167 struct mtx sc_mtx; 217 168 struct usb_xfer *sc_xfer[MOS_ENDPT_MAX]; 218 219 u_int mos_bufsz;220 169 }; 221 170
Note:
See TracChangeset
for help on using the changeset viewer.