freebsd-dev/sys/dev/usb
Thomas Moestl 90ce56c287 Add the following functions/macros to support byte order conversions and
device drivers for bus system with other endinesses than the CPU (using
interfaces compatible to NetBSD):

- bwap16() and bswap32(). These have optimized implementations on some
  architectures; for those that don't, there exist generic implementations.
- macros to convert from a certain byte order to host byte order and vice
  versa, using a naming scheme like le16toh(), htole16().
  These are implemented using the bswap functions.
- stream bus space access functions, which do not perform a byte order
  conversion (while the normal access functions would if the bus endianess
  differs from the CPU endianess).

htons(), htonl(), ntohs() and ntohl() are implemented using the new
functions above for kernel usage. None of the above interfaces is currently
exported to user land.

Make use of the new functions in a few places where local implementations
of the same functionality existed.

Reviewed by:	mike, bde
Tested on alpha by:	mike
2002-02-27 17:16:18 +00:00
..
devlist2h.awk
FILES Sync with NetBSD: 2002-01-02 18:28:45 +00:00
hid.c Sync with NetBSD (1.16 - 1.17) 2001-12-29 20:37:14 +00:00
hid.h
if_aue.c Add a new linksys ethernet adapter: USB_PRODUCT_LINKSYS_USB10TX2. 2002-01-03 18:56:35 +00:00
if_auereg.h Support MELCO LUA2-TX USB ethernet adaptor. 2001-11-19 18:47:49 +00:00
if_cue.c Make these depend on the usb module so they can use its symbols if they 2001-08-22 05:33:57 +00:00
if_cuereg.h Disable the mutex locking calls. These do not work in their present form 2001-02-27 01:05:25 +00:00
if_kue.c Make these depend on the usb module so they can use its symbols if they 2001-08-22 05:33:57 +00:00
if_kuereg.h Disable the mutex locking calls. These do not work in their present form 2001-02-27 01:05:25 +00:00
kue_fw.h
Makefile.usbdevs
ohci_pci.c KNF style the code, ready for an MFC. 2002-02-17 11:58:58 +00:00
ohci.c Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
ohcireg.h Merge from NetBSD: 2002-01-21 05:02:21 +00:00
ohcivar.h Merge from NetBSD: 2002-01-26 12:04:22 +00:00
rio500_usb.h
udbp.c select() DKI is now in <sys/selinfo.h>. 2001-01-09 04:33:49 +00:00
udbp.h
ugen.c Prefix structure members to protect them against clashes with eg. 2002-02-20 20:47:21 +00:00
uhci_pci.c Fix a formatting error. 2002-02-17 12:41:50 +00:00
uhci.c Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
uhcireg.h Update the $NetBSD$ ident. 2002-01-26 13:09:52 +00:00
uhcivar.h Reduce the diffs between NetBSD and our version where appropriate 2002-01-26 13:08:57 +00:00
uhid.c Prefix structure members to protect them against clashes with eg. 2002-02-20 20:47:21 +00:00
uhub.c Merge from NetBSD: 2002-02-19 02:00:27 +00:00
ukbd.c Sync with NetBSD: 2002-01-02 18:28:45 +00:00
ulpt.c in ulpt_reset() req.bmRequestType was unitialized, fix it. 2002-02-26 01:19:56 +00:00
umass.c Clean up some debugging output. 2002-02-19 10:53:25 +00:00
umodem.c Re-add bmaj to the cdevsw's, but don't compile it in on -current. 2002-02-15 22:54:10 +00:00
ums.c Re-add bmaj to the cdevsw's, but don't compile it in on -current. 2002-02-15 22:54:10 +00:00
urio.c Revert uio.uio_td back to uio.uio_procp, using a #define in usb_port to 2002-01-02 23:31:08 +00:00
usb_ethersubr.c Lock down the network interface queues. The queue mutex must be obtained 2000-11-25 07:35:38 +00:00
usb_ethersubr.h
usb_if.m
usb_mem.h
usb_port.h Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
usb_quirks.c Pull in the most recent version of usb_quirks.h and propagate the necessary 2001-07-05 10:12:59 +00:00
usb_quirks.h Pull in the most recent version of usb_quirks.h and propagate the necessary 2001-07-05 10:12:59 +00:00
usb_subr.c Prefix structure members to protect them against clashes with eg. 2002-02-20 20:47:21 +00:00
usb.c Prefix structure members to protect them against clashes with eg. 2002-02-20 20:47:21 +00:00
usb.h Revert part of the last commit. A couple of defines were removed 2002-02-26 10:00:32 +00:00
usbcdc.h Add more CDC defines. 2000-08-13 18:23:07 +00:00
usbdevs Support the HP 5400C scanner. 2002-02-14 02:51:12 +00:00
usbdevs_data.h Regenerate. 2002-02-14 03:03:08 +00:00
usbdevs.h Regenerate. 2002-02-14 03:03:08 +00:00
usbdi_util.c Don't free memory that has been freed already. 2001-06-30 10:57:37 +00:00
usbdi_util.h
usbdi.c Prefix structure members to protect them against clashes with eg. 2002-02-20 20:47:21 +00:00
usbdi.h Merge from NetBSD: revs 1.55 and 1.56 2002-02-11 03:15:08 +00:00
usbdivar.h Merge from NetBSD: 2002-02-16 00:51:26 +00:00
usbhid.h Sync usb.h with NetBSD, apart from usb_device_info.speed, which 2002-01-02 20:16:53 +00:00
uscanner.c Support the HP 5400C scanner. 2002-02-14 02:51:12 +00:00