003 File Manager
Current Path:
/usr/src/sys/dev/usb/net
usr
/
src
/
sys
/
dev
/
usb
/
net
/
📁
..
📄
if_aue.c
(27.91 KB)
📄
if_auereg.h
(6.92 KB)
📄
if_axe.c
(39.85 KB)
📄
if_axereg.h
(12.27 KB)
📄
if_axge.c
(26.17 KB)
📄
if_axgereg.h
(5.96 KB)
📄
if_cdce.c
(41.12 KB)
📄
if_cdceem.c
(21.1 KB)
📄
if_cdcereg.h
(3.54 KB)
📄
if_cue.c
(16.09 KB)
📄
if_cuereg.h
(4.58 KB)
📄
if_ipheth.c
(13.2 KB)
📄
if_iphethvar.h
(2.76 KB)
📄
if_kue.c
(18.07 KB)
📄
if_kuefw.h
(31.97 KB)
📄
if_kuereg.h
(5.1 KB)
📄
if_mos.c
(25.69 KB)
📄
if_mosreg.h
(6.06 KB)
📄
if_muge.c
(58.65 KB)
📄
if_mugereg.h
(11.98 KB)
📄
if_rue.c
(22.26 KB)
📄
if_ruereg.h
(4.89 KB)
📄
if_smsc.c
(45.85 KB)
📄
if_smscreg.h
(10.62 KB)
📄
if_udav.c
(21.29 KB)
📄
if_udavreg.h
(7.01 KB)
📄
if_ure.c
(45.49 KB)
📄
if_urereg.h
(12.26 KB)
📄
if_urndis.c
(27.6 KB)
📄
if_urndisreg.h
(1.76 KB)
📄
if_usie.c
(38.34 KB)
📄
if_usievar.h
(6.89 KB)
📄
ruephy.c
(5.51 KB)
📄
ruephyreg.h
(1.66 KB)
📄
uhso.c
(49.32 KB)
📄
usb_ethernet.c
(14.75 KB)
📄
usb_ethernet.h
(4.05 KB)
Editing: if_urndisreg.h
/* $FreeBSD$ */ /* $OpenBSD: if_urndisreg.h,v 1.19 2013/11/21 14:08:05 mpi Exp $ */ /* * Copyright (c) 2010 Jonathan Armani <armani@openbsd.org> * Copyright (c) 2010 Fabien Romano <fabien@openbsd.org> * Copyright (c) 2010 Michael Knudsen <mk@openbsd.org> * All rights reserved. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef _IF_URNDISREG_H_ #define _IF_URNDISREG_H_ #define RNDIS_RESPONSE_LEN 1024 /* bytes */ #define RNDIS_RX_MAXLEN (16 * 1024) #define RNDIS_TX_FRAMES_MAX 8 #define RNDIS_TX_MAXLEN MCLBYTES enum { URNDIS_BULK_RX, URNDIS_BULK_TX, URNDIS_INTR_RX, URNDIS_N_TRANSFER, }; struct urndis_softc { struct usb_ether sc_ue; struct mtx sc_mtx; /* RNDIS device info */ uint32_t sc_lim_pktsz; uint32_t sc_filter; struct usb_device *sc_udev; struct usb_xfer *sc_xfer[URNDIS_N_TRANSFER]; uint8_t sc_ifaceno_ctl; uint8_t sc_response_buf[RNDIS_RESPONSE_LEN] __aligned(4); }; #define URNDIS_LOCK(sc) mtx_lock(&(sc)->sc_mtx) #define URNDIS_UNLOCK(sc) mtx_unlock(&(sc)->sc_mtx) #define URNDIS_LOCK_ASSERT(sc, what) mtx_assert(&(sc)->sc_mtx, (what)) #endif /* _IF_URNDISREG_H_ */
Upload File
Create Folder