dev/usb: minor spelling fixes in comments.
No functional change. Reviewed by: hselasky
This commit is contained in:
parent
b790c1938d
commit
207332450e
@ -1330,7 +1330,7 @@ at91dci_clear_stall_sub(struct at91dci_softc *sc, uint8_t ep_no,
|
||||
|
||||
/*
|
||||
* NOTE: One would assume that a FIFO reset would release the
|
||||
* FIFO banks aswell, but it doesn't! We have to do this
|
||||
* FIFO banks as well, but it doesn't! We have to do this
|
||||
* manually!
|
||||
*/
|
||||
|
||||
|
@ -3332,7 +3332,7 @@ dwc_otg_setup_standard_chain(struct usb_xfer *xfer)
|
||||
* type in general, as a means to workaround
|
||||
* that. This trick should work for both FULL and LOW
|
||||
* speed USB traffic going through a TT. For non-TT
|
||||
* traffic it works aswell. The reason for using
|
||||
* traffic it works as well. The reason for using
|
||||
* CONTROL type instead of BULK is that some TTs might
|
||||
* reject LOW speed BULK traffic.
|
||||
*/
|
||||
|
@ -2995,7 +2995,7 @@ struct usb_device_descriptor ehci_devd =
|
||||
UDPROTO_HSHUBSTT, /* protocol */
|
||||
64, /* max packet */
|
||||
{0}, {0}, {0x00, 0x01}, /* device id */
|
||||
1, 2, 0, /* string indicies */
|
||||
1, 2, 0, /* string indexes */
|
||||
1 /* # of configurations */
|
||||
};
|
||||
|
||||
|
@ -2043,7 +2043,7 @@ struct usb_device_descriptor ohci_devd =
|
||||
UDPROTO_FSHUB, /* protocol */
|
||||
64, /* max packet */
|
||||
{0}, {0}, {0x00, 0x01}, /* device id */
|
||||
1, 2, 0, /* string indicies */
|
||||
1, 2, 0, /* string indexes */
|
||||
1 /* # of configurations */
|
||||
};
|
||||
|
||||
|
@ -2321,7 +2321,7 @@ struct usb_device_descriptor uhci_devd =
|
||||
UDPROTO_FSHUB, /* protocol */
|
||||
64, /* max packet */
|
||||
{0}, {0}, {0x00, 0x01}, /* device id */
|
||||
1, 2, 0, /* string indicies */
|
||||
1, 2, 0, /* string indexes */
|
||||
1 /* # of configurations */
|
||||
};
|
||||
|
||||
|
@ -45,16 +45,16 @@
|
||||
#define XHCI_HCIVERSION 0x02 /* RO Interface version number */
|
||||
#define XHCI_HCIVERSION_0_9 0x0090 /* xHCI version 0.9 */
|
||||
#define XHCI_HCIVERSION_1_0 0x0100 /* xHCI version 1.0 */
|
||||
#define XHCI_HCSPARAMS1 0x04 /* RO structual parameters 1 */
|
||||
#define XHCI_HCSPARAMS1 0x04 /* RO structural parameters 1 */
|
||||
#define XHCI_HCS1_DEVSLOT_MAX(x)((x) & 0xFF)
|
||||
#define XHCI_HCS1_IRQ_MAX(x) (((x) >> 8) & 0x3FF)
|
||||
#define XHCI_HCS1_N_PORTS(x) (((x) >> 24) & 0xFF)
|
||||
#define XHCI_HCSPARAMS2 0x08 /* RO structual parameters 2 */
|
||||
#define XHCI_HCSPARAMS2 0x08 /* RO structural parameters 2 */
|
||||
#define XHCI_HCS2_IST(x) ((x) & 0xF)
|
||||
#define XHCI_HCS2_ERST_MAX(x) (((x) >> 4) & 0xF)
|
||||
#define XHCI_HCS2_SPR(x) (((x) >> 24) & 0x1)
|
||||
#define XHCI_HCS2_SPB_MAX(x) (((x) >> 27) & 0x7F)
|
||||
#define XHCI_HCSPARAMS3 0x0C /* RO structual parameters 3 */
|
||||
#define XHCI_HCSPARAMS3 0x0C /* RO structural parameters 3 */
|
||||
#define XHCI_HCS3_U1_DEL(x) ((x) & 0xFF)
|
||||
#define XHCI_HCS3_U2_DEL(x) (((x) >> 16) & 0xFFFF)
|
||||
#define XHCI_HCSPARAMS0 0x10 /* RO capability parameters */
|
||||
|
@ -572,7 +572,7 @@ ums_attach(device_t dev)
|
||||
* The Microsoft Wireless Notebook Optical Mouse seems to be in worse
|
||||
* shape than the Wireless Intellimouse 2.0, as its X, Y, wheel, and
|
||||
* all of its other button positions are all off. It also reports that
|
||||
* it has two addional buttons and a tilt wheel.
|
||||
* it has two additional buttons and a tilt wheel.
|
||||
*/
|
||||
if (usb_test_quirk(uaa, UQ_MS_BAD_CLASS)) {
|
||||
|
||||
|
@ -1040,7 +1040,7 @@ wsp_intr_callback(struct usb_xfer *xfer, usb_error_t error)
|
||||
if (sc->o_ntouch != ntouch)
|
||||
dx = dy = 0;
|
||||
|
||||
/* Ignore unexpeted movment when typing */
|
||||
/* Ignore unexpeted movement when typing */
|
||||
if (ntouch == 1 && sc->index[0]->tool_major > 1200)
|
||||
dx = dy = 0;
|
||||
|
||||
|
@ -744,7 +744,7 @@ ng_udbp_rcvdata(hook_p hook, item_p item)
|
||||
|
||||
/*
|
||||
* Do local shutdown processing..
|
||||
* We are a persistant device, we refuse to go away, and
|
||||
* We are a persistent device, we refuse to go away, and
|
||||
* only remove our links and reset ourself.
|
||||
*/
|
||||
static int
|
||||
|
@ -47,7 +47,7 @@ __FBSDID("$FreeBSD$");
|
||||
* RX filter uses a 512-bit multicast hash table, single perfect entry
|
||||
* for the station address, and promiscuous mode. Unlike the ADMtek
|
||||
* and KLSI chips, the CATC ASIC supports read and write combining
|
||||
* mode where multiple packets can be transfered using a single bulk
|
||||
* mode where multiple packets can be transferred using a single bulk
|
||||
* transaction, which helps performance a great deal.
|
||||
*/
|
||||
|
||||
|
@ -693,7 +693,7 @@ rue_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
|
||||
usbd_copy_out(pc, actlen - 4, &status, sizeof(status));
|
||||
actlen -= 4;
|
||||
|
||||
/* check recieve packet was valid or not */
|
||||
/* check receive packet was valid or not */
|
||||
status = le16toh(status);
|
||||
if ((status & RUE_RXSTAT_VALID) == 0) {
|
||||
if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
|
||||
|
@ -709,7 +709,7 @@ urndis_ctrl_halt(struct urndis_softc *sc)
|
||||
}
|
||||
|
||||
/*
|
||||
* NB: Querying a device has the requirment of using an input buffer the size
|
||||
* NB: Querying a device has the requirement of using an input buffer the size
|
||||
* of the expected reply or larger, except for variably sized replies.
|
||||
*/
|
||||
static uint32_t
|
||||
|
@ -419,7 +419,7 @@ ulpt_open(struct usb_fifo *fifo, int fflags)
|
||||
|
||||
if (sc->sc_fflags == 0) {
|
||||
|
||||
/* reset USB paralell port */
|
||||
/* reset USB parallel port */
|
||||
|
||||
ulpt_reset(sc);
|
||||
}
|
||||
|
@ -107,28 +107,28 @@
|
||||
* 4, R/W */
|
||||
#define MCS7840_DEV_REG_BI_FIFO_STAT1 0x32 /* Bulk-In FIFO Stat for Port
|
||||
* 1, contains number of
|
||||
* availiable bytes, R/Only */
|
||||
* available bytes, R/Only */
|
||||
#define MCS7840_DEV_REG_BO_FIFO_STAT1 0x33 /* Bulk-out FIFO Stat for Port
|
||||
* 1, contains number of
|
||||
* availiable bytes, R/Only */
|
||||
* available bytes, R/Only */
|
||||
#define MCS7840_DEV_REG_BI_FIFO_STAT2 0x34 /* Bulk-In FIFO Stat for Port
|
||||
* 2, contains number of
|
||||
* availiable bytes, R/Only */
|
||||
* available bytes, R/Only */
|
||||
#define MCS7840_DEV_REG_BO_FIFO_STAT2 0x35 /* Bulk-out FIFO Stat for Port
|
||||
* 2, contains number of
|
||||
* availiable bytes, R/Only */
|
||||
* available bytes, R/Only */
|
||||
#define MCS7840_DEV_REG_BI_FIFO_STAT3 0x36 /* Bulk-In FIFO Stat for Port
|
||||
* 3, contains number of
|
||||
* availiable bytes, R/Only */
|
||||
* available bytes, R/Only */
|
||||
#define MCS7840_DEV_REG_BO_FIFO_STAT3 0x37 /* Bulk-out FIFO Stat for Port
|
||||
* 3, contains number of
|
||||
* availiable bytes, R/Only */
|
||||
* available bytes, R/Only */
|
||||
#define MCS7840_DEV_REG_BI_FIFO_STAT4 0x38 /* Bulk-In FIFO Stat for Port
|
||||
* 4, contains number of
|
||||
* availiable bytes, R/Only */
|
||||
* available bytes, R/Only */
|
||||
#define MCS7840_DEV_REG_BO_FIFO_STAT4 0x39 /* Bulk-out FIFO Stat for Port
|
||||
* 4, contains number of
|
||||
* availiable bytes, R/Only */
|
||||
* available bytes, R/Only */
|
||||
#define MCS7840_DEV_REG_ZERO_PERIOD1 0x3a /* Period between zero out
|
||||
* frames for Port 1, R/W */
|
||||
#define MCS7840_DEV_REG_ZERO_PERIOD2 0x3b /* Period between zero out
|
||||
@ -139,28 +139,28 @@
|
||||
* frames for Port 1, R/W */
|
||||
#define MCS7840_DEV_REG_ZERO_ENABLE 0x3e /* Enable/disable of zero out
|
||||
* frames, R/W */
|
||||
#define MCS7840_DEV_REG_THR_VAL_LOW1 0x3f /* Low 8 bits of threshhold
|
||||
#define MCS7840_DEV_REG_THR_VAL_LOW1 0x3f /* Low 8 bits of threshold
|
||||
* value for Bulk-Out for Port
|
||||
* 1, R/W */
|
||||
#define MCS7840_DEV_REG_THR_VAL_HIGH1 0x40 /* High 1 bit of threshhold
|
||||
#define MCS7840_DEV_REG_THR_VAL_HIGH1 0x40 /* High 1 bit of threshold
|
||||
* value for Bulk-Out and
|
||||
* enable flag for Port 1, R/W */
|
||||
#define MCS7840_DEV_REG_THR_VAL_LOW2 0x41 /* Low 8 bits of threshhold
|
||||
#define MCS7840_DEV_REG_THR_VAL_LOW2 0x41 /* Low 8 bits of threshold
|
||||
* value for Bulk-Out for Port
|
||||
* 2, R/W */
|
||||
#define MCS7840_DEV_REG_THR_VAL_HIGH2 0x42 /* High 1 bit of threshhold
|
||||
#define MCS7840_DEV_REG_THR_VAL_HIGH2 0x42 /* High 1 bit of threshold
|
||||
* value for Bulk-Out and
|
||||
* enable flag for Port 2, R/W */
|
||||
#define MCS7840_DEV_REG_THR_VAL_LOW3 0x43 /* Low 8 bits of threshhold
|
||||
#define MCS7840_DEV_REG_THR_VAL_LOW3 0x43 /* Low 8 bits of threshold
|
||||
* value for Bulk-Out for Port
|
||||
* 3, R/W */
|
||||
#define MCS7840_DEV_REG_THR_VAL_HIGH3 0x44 /* High 1 bit of threshhold
|
||||
#define MCS7840_DEV_REG_THR_VAL_HIGH3 0x44 /* High 1 bit of threshold
|
||||
* value for Bulk-Out and
|
||||
* enable flag for Port 3, R/W */
|
||||
#define MCS7840_DEV_REG_THR_VAL_LOW4 0x45 /* Low 8 bits of threshhold
|
||||
#define MCS7840_DEV_REG_THR_VAL_LOW4 0x45 /* Low 8 bits of threshold
|
||||
* value for Bulk-Out for Port
|
||||
* 4, R/W */
|
||||
#define MCS7840_DEV_REG_THR_VAL_HIGH4 0x46 /* High 1 bit of threshhold
|
||||
#define MCS7840_DEV_REG_THR_VAL_HIGH4 0x46 /* High 1 bit of threshold
|
||||
* value for Bulk-Out and
|
||||
* enable flag for Port 4, R/W */
|
||||
|
||||
|
@ -100,7 +100,7 @@ SYSCTL_INT(_hw_usb_uvisor, OID_AUTO, debug, CTLFLAG_RWTUN,
|
||||
/* From the Linux driver */
|
||||
/*
|
||||
* UVISOR_REQUEST_BYTES_AVAILABLE asks the visor for the number of bytes that
|
||||
* are available to be transfered to the host for the specified endpoint.
|
||||
* are available to be transferred to the host for the specified endpoint.
|
||||
* Currently this is not used, and always returns 0x0001
|
||||
*/
|
||||
#define UVISOR_REQUEST_BYTES_AVAILABLE 0x01
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted under any licence of your choise which
|
||||
meets the open source licence definiton
|
||||
meets the open source licence definition
|
||||
http://www.opensource.org/opd.html such as the GNU licence or the
|
||||
BSD licence.
|
||||
|
||||
|
@ -2721,7 +2721,7 @@ umass_rbc_transform(struct umass_softc *sc, uint8_t *cmd_ptr, uint8_t cmd_len)
|
||||
cmd_len = 12;
|
||||
}
|
||||
sc->sc_transfer.cmd_len = cmd_len;
|
||||
return (1); /* sucess */
|
||||
return (1); /* success */
|
||||
|
||||
/* All other commands are not legal in RBC */
|
||||
default:
|
||||
|
@ -522,8 +522,8 @@ usb_make_device_desc(struct usb_temp_setup *temp,
|
||||
* usb_hw_ep_match
|
||||
*
|
||||
* Return values:
|
||||
* 0: The endpoint profile does not match the criterias
|
||||
* Else: The endpoint profile matches the criterias
|
||||
* 0: The endpoint profile does not match the criteria
|
||||
* Else: The endpoint profile matches the criteria
|
||||
*------------------------------------------------------------------------*/
|
||||
static uint8_t
|
||||
usb_hw_ep_match(const struct usb_hw_ep_profile *pf,
|
||||
|
@ -161,7 +161,7 @@ struct usb_cdc_notification {
|
||||
#define UCDC_NOTIFICATION_LENGTH 8
|
||||
|
||||
/*
|
||||
* Bits set in the SERIAL STATE notifcation (first byte of data)
|
||||
* Bits set in the SERIAL STATE notification (first byte of data)
|
||||
*/
|
||||
|
||||
#define UCDC_N_SERIAL_OVERRUN 0x40
|
||||
|
@ -179,7 +179,7 @@ usb_loc_fill(struct usb_fs_privdata* pd, struct usb_cdev_privdata *cpd)
|
||||
*
|
||||
* This function is used to atomically refer an USB device by its
|
||||
* device location. If this function returns success the USB device
|
||||
* will not dissappear until the USB device is unreferenced.
|
||||
* will not disappear until the USB device is unreferenced.
|
||||
*
|
||||
* Return values:
|
||||
* 0: Success, refcount incremented on the given USB device.
|
||||
|
@ -190,7 +190,7 @@ usbd_get_ep_by_addr(struct usb_device *udev, uint8_t ea_val)
|
||||
ea_val &= EA_MASK;
|
||||
|
||||
/*
|
||||
* Iterate accross all the USB endpoints searching for a match
|
||||
* Iterate across all the USB endpoints searching for a match
|
||||
* based on the endpoint address:
|
||||
*/
|
||||
for (; ep != ep_end; ep++) {
|
||||
@ -300,7 +300,7 @@ usbd_get_endpoint(struct usb_device *udev, uint8_t iface_index,
|
||||
}
|
||||
|
||||
/*
|
||||
* Iterate accross all the USB endpoints searching for a match
|
||||
* Iterate across all the USB endpoints searching for a match
|
||||
* based on the endpoint address. Note that we are searching
|
||||
* the endpoints from the beginning of the "udev->endpoints" array.
|
||||
*/
|
||||
|
@ -313,7 +313,7 @@ usb_handle_iface_request(struct usb_xfer *xfer,
|
||||
case UR_SET_INTERFACE:
|
||||
/*
|
||||
* We assume that the endpoints are the same
|
||||
* accross the alternate settings.
|
||||
* across the alternate settings.
|
||||
*
|
||||
* Reset the endpoints, because re-attaching
|
||||
* only a part of the device is not possible.
|
||||
|
@ -576,7 +576,7 @@ hid_report_size(const void *buf, usb_size_t len, enum hid_kind k, uint8_t *id)
|
||||
|
||||
for (d = hid_start_parse(buf, len, 1 << k); hid_get_item(d, &h);) {
|
||||
if (h.kind == k) {
|
||||
/* check for ID-byte presense */
|
||||
/* check for ID-byte presence */
|
||||
if ((h.report_ID != 0) && !any_id) {
|
||||
if (id != NULL)
|
||||
*id = h.report_ID;
|
||||
|
@ -1766,7 +1766,7 @@ uhub_child_pnpinfo_string(device_t parent, device_t child,
|
||||
* The USB Transaction Translator:
|
||||
* ===============================
|
||||
*
|
||||
* When doing LOW- and FULL-speed USB transfers accross a HIGH-speed
|
||||
* When doing LOW- and FULL-speed USB transfers across a HIGH-speed
|
||||
* USB HUB, bandwidth must be allocated for ISOCHRONOUS and INTERRUPT
|
||||
* USB transfers. To utilize bandwidth dynamically the "scatter and
|
||||
* gather" principle must be applied. This means that bandwidth must
|
||||
@ -1838,7 +1838,7 @@ usb_intr_find_best_slot(usb_size_t *ptr, uint8_t start,
|
||||
/*------------------------------------------------------------------------*
|
||||
* usb_hs_bandwidth_adjust
|
||||
*
|
||||
* This function will update the bandwith usage for the microframe
|
||||
* This function will update the bandwidth usage for the microframe
|
||||
* having index "slot" by "len" bytes. "len" can be negative. If the
|
||||
* "slot" argument is greater or equal to "USB_HS_MICRO_FRAMES_MAX"
|
||||
* the "slot" argument will be replaced by the slot having least used
|
||||
@ -2310,7 +2310,7 @@ usb_needs_explore_all(void)
|
||||
return;
|
||||
}
|
||||
/*
|
||||
* Explore all USB busses in parallell.
|
||||
* Explore all USB busses in parallel.
|
||||
*/
|
||||
max = devclass_get_maxunit(dc);
|
||||
while (max >= 0) {
|
||||
|
@ -615,7 +615,7 @@ usbd_transfer_setup_sub(struct usb_setup_params *parm)
|
||||
/*
|
||||
* NOTE: we do not allow "max_packet_size" or "max_frame_size"
|
||||
* to be equal to zero when setting up USB transfers, hence
|
||||
* this leads to alot of extra code in the USB kernel.
|
||||
* this leads to a lot of extra code in the USB kernel.
|
||||
*/
|
||||
|
||||
if ((xfer->max_frame_size == 0) ||
|
||||
@ -2448,7 +2448,7 @@ usbd_callback_wrapper(struct usb_xfer_queue *pq)
|
||||
*
|
||||
* This function is called when the DMA delay has been exectuded, and
|
||||
* will make sure that the callback is called to complete the USB
|
||||
* transfer. This code path is ususally only used when there is an USB
|
||||
* transfer. This code path is usually only used when there is an USB
|
||||
* error like USB_ERR_CANCELLED.
|
||||
*------------------------------------------------------------------------*/
|
||||
void
|
||||
|
@ -134,7 +134,7 @@ vendor MEGATRENDS 0x046b American Megatrends
|
||||
vendor LOGITECH 0x046d Logitech
|
||||
vendor BTC 0x046e Behavior Tech. Computer
|
||||
vendor PHILIPS 0x0471 Philips
|
||||
vendor SUN2 0x0472 Sun Microsystems (offical)
|
||||
vendor SUN2 0x0472 Sun Microsystems (official)
|
||||
vendor SANYO 0x0474 Sanyo Electric
|
||||
vendor SEAGATE 0x0477 Seagate
|
||||
vendor CONNECTIX 0x0478 Connectix
|
||||
|
@ -241,7 +241,7 @@ struct usb_config {
|
||||
/*
|
||||
* Use these macro when defining USB device ID arrays if you want to
|
||||
* have your driver module automatically loaded in host, device or
|
||||
* both modes respectivly:
|
||||
* both modes respectively:
|
||||
*/
|
||||
#if USB_HAVE_ID_SECTION
|
||||
#define STRUCT_USB_HOST_ID \
|
||||
|
@ -1030,7 +1030,7 @@ run_vap_delete(struct ieee80211vap *vap)
|
||||
* There are numbers of functions need to be called in context thread.
|
||||
* Rather than creating taskqueue event for each of those functions,
|
||||
* here is all-for-one taskqueue callback function. This function
|
||||
* gurantees deferred functions are executed in the same order they
|
||||
* guarantees deferred functions are executed in the same order they
|
||||
* were enqueued.
|
||||
* '& RUN_CMDQ_MASQ' is to loop cmdq[].
|
||||
*/
|
||||
@ -3372,7 +3372,7 @@ run_tx(struct run_softc *sc, struct mbuf *m, struct ieee80211_node *ni)
|
||||
/*
|
||||
* Unlike PCI based devices, we don't get any interrupt from
|
||||
* USB devices, so we simulate FIFO-is-full interrupt here.
|
||||
* Ralink recomends to drain FIFO stats every 100 ms, but 16 slots
|
||||
* Ralink recommends to drain FIFO stats every 100 ms, but 16 slots
|
||||
* quickly get fulled. To prevent overflow, increment a counter on
|
||||
* every FIFO stat request, so we know how many slots are left.
|
||||
* We do this only in HOSTAP or multiple vap mode since FIFO stats
|
||||
@ -4884,7 +4884,7 @@ run_update_beacon_cb(void *arg)
|
||||
|
||||
/*
|
||||
* No need to call ieee80211_beacon_update(), run_update_beacon()
|
||||
* is taking care of apropriate calls.
|
||||
* is taking care of appropriate calls.
|
||||
*/
|
||||
if (rvp->beacon_mbuf == NULL) {
|
||||
rvp->beacon_mbuf = ieee80211_beacon_alloc(ni);
|
||||
|
Loading…
Reference in New Issue
Block a user