Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/next/external/cache/sources/wl/include/dhdioctl.h
Views: 3959
/*1* Definitions for ioctls to access DHD iovars.2* Based on wlioctl.h (for Broadcom 802.11abg driver).3* (Moves towards generic ioctls for BCM drivers/iovars.)4*5* Definitions subject to change without notice.6*7* $Copyright Open Broadcom Corporation$8*9* $Id: dhdioctl.h 327775 2012-04-16 18:54:32Z $10*/1112#ifndef _dhdioctl_h_13#define _dhdioctl_h_1415#include <typedefs.h>161718/* require default structure packing */19#define BWL_DEFAULT_PACKING20#include <packed_section_start.h>212223/* Linux network driver ioctl encoding */24typedef struct dhd_ioctl {25uint cmd; /* common ioctl definition */26void *buf; /* pointer to user buffer */27uint len; /* length of user buffer */28bool set; /* get or set request (optional) */29uint used; /* bytes read or written (optional) */30uint needed; /* bytes needed (optional) */31uint driver; /* to identify target driver */32} dhd_ioctl_t;3334/* Underlying BUS definition */35enum {36BUS_TYPE_USB = 0, /* for USB dongles */37BUS_TYPE_SDIO /* for SDIO dongles */38};3940/* per-driver magic numbers */41#define DHD_IOCTL_MAGIC 0x004449444243/* bump this number if you change the ioctl interface */44#define DHD_IOCTL_VERSION 14546#define DHD_IOCTL_MAXLEN 8192 /* max length ioctl buffer required */47#define DHD_IOCTL_SMLEN 256 /* "small" length ioctl buffer required */4849/* common ioctl definitions */50#define DHD_GET_MAGIC 051#define DHD_GET_VERSION 152#define DHD_GET_VAR 253#define DHD_SET_VAR 35455/* message levels */56#define DHD_ERROR_VAL 0x000157#define DHD_TRACE_VAL 0x000258#define DHD_INFO_VAL 0x000459#define DHD_DATA_VAL 0x000860#define DHD_CTL_VAL 0x001061#define DHD_TIMER_VAL 0x002062#define DHD_HDRS_VAL 0x004063#define DHD_BYTES_VAL 0x008064#define DHD_INTR_VAL 0x010065#define DHD_LOG_VAL 0x020066#define DHD_GLOM_VAL 0x040067#define DHD_EVENT_VAL 0x080068#define DHD_BTA_VAL 0x100069#if 0 && (NDISVER >= 0x0630) && 170#define DHD_SCAN_VAL 0x200071#else72#define DHD_ISCAN_VAL 0x200073#endif74#define DHD_ARPOE_VAL 0x40007576#ifdef SDTEST77/* For pktgen iovar */78typedef struct dhd_pktgen {79uint version; /* To allow structure change tracking */80uint freq; /* Max ticks between tx/rx attempts */81uint count; /* Test packets to send/rcv each attempt */82uint print; /* Print counts every <print> attempts */83uint total; /* Total packets (or bursts) */84uint minlen; /* Minimum length of packets to send */85uint maxlen; /* Maximum length of packets to send */86uint numsent; /* Count of test packets sent */87uint numrcvd; /* Count of test packets received */88uint numfail; /* Count of test send failures */89uint mode; /* Test mode (type of test packets) */90uint stop; /* Stop after this many tx failures */91} dhd_pktgen_t;9293/* Version in case structure changes */94#define DHD_PKTGEN_VERSION 29596/* Type of test packets to use */97#define DHD_PKTGEN_ECHO 1 /* Send echo requests */98#define DHD_PKTGEN_SEND 2 /* Send discard packets */99#define DHD_PKTGEN_RXBURST 3 /* Request dongle send N packets */100#define DHD_PKTGEN_RECV 4 /* Continuous rx from continuous tx dongle */101#endif /* SDTEST */102103/* Enter idle immediately (no timeout) */104#define DHD_IDLE_IMMEDIATE (-1)105106/* Values for idleclock iovar: other values are the sd_divisor to use when idle */107#define DHD_IDLE_ACTIVE 0 /* Do not request any SD clock change when idle */108#define DHD_IDLE_STOP (-1) /* Request SD clock be stopped (and use SD1 mode) */109110111/* require default structure packing */112#include <packed_section_end.h>113114#endif /* _dhdioctl_h_ */115116117