summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_port.h
AgeCommit message (Collapse)Author
2007-06-17No longer include usb_port.h, all macros have been converted to their CMarc Balmer
counterparts. Revert usb_port.h to it's original form with all the macro definitions to ease the import of new drivers from other BSDs. after discussion with deraadt; feedback from mk, miod, jsg, dlg. ok dlg.
2007-06-15Replace the USB_USE_SOFTINTR macro with __HAVE_GENERIC_SOFT_INTTERUPTSMarc Balmer
(which was used to define USB_USE_SOFTINTR). No binary changes. ok dlg, mk.
2007-06-14Move the mstohz macro out of ubs_port.h and to the three places where it isMarc Balmer
used. ok jsg.
2007-06-14Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS andMarc Balmer
USB_DECLARE_DRIVER macros. No binary change. ok dlg.
2007-06-14Move four #defines out of usb_port.h and to the places where they are used.Marc Balmer
ok jsg.
2007-06-14Move the inclusion of sys/timeout.h from usb_port.h to the drivers thatMarc Balmer
need it. If a USB driver uses timeout(9) functions, the header file sys/timeout.h must be included. Tested by me (i386, macppc, sparc64), ckuethe (amd64), & todd (sparc, zaurus). ok dlg.
2007-06-13Remove the definition and (single) use of the DECLARE_USB_DMA_T macro.Marc Balmer
No binary change. ok dlg.
2007-06-13Remove the definition and usage of the IF_INPUT macro which was definedMarc Balmer
as ether_input_mbuf which is itself a macro for ether_input. No binary change. ok dlg.
2007-06-13Remove the definition and use of umass/umass_quirks related macros.Marc Balmer
No binary change. ok dlg.
2007-06-13Remove the defintion and use of some byteswap macros.Marc Balmer
No binary change. ok dlg.
2007-06-12Remove the definition and use of the device_ptr_t which was a struct device *.Marc Balmer
No binary change. ok mk.
2007-06-11Remove the usb_proc_ptr type definition, which was really a 'struct proc *'Marc Balmer
only. No binary change. ok mk.
2007-06-11Remove the USB_GET_SC_OPEN macro. There is a double check for sc == NULL inMarc Balmer
ulpt.c, I am aware of that and it will be changed later. No binary change. ok mk.
2007-06-11Remove the definition and use of the USB_GET_SC macro, no binary change.Marc Balmer
ok mk.
2007-06-11More USB cleanup: In usb_port.h, get rid of the sel_klist #defineMichael Knudsen
(which was there twice without gcc complaining) and update all uses of it. ok jsg mbalmer
2007-06-11Remove the definiton and usage of the USB_DO_ATTACH macro. It was a wrapperMarc Balmer
around a single function only and it did not even use all of it's arguments. ok jsg.
2007-06-11Remove the definition and usage of the USBGETSOFTC macro, which was reallyMarc Balmer
only a cast to (void *). ok jsg.
2007-06-10Get rid of the USBDEVPTRNAME macro.Marc Balmer
No binary change. ok jsg.
2007-06-10Remove the definition and use of USBDEVUNIT.Marc Balmer
ok jsg.
2007-06-10Remove the definition and use of the USBDEVNAME macro.Marc Balmer
(This might look easy, but it was a big diff. Thanks to dlg and especially jsg for looking over it; we found at least four mistakes in the initial diff.) ok jsg.
2007-06-10Remove the definition and use of the USBDEV macro. It only created confusionMarc Balmer
and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev. No binary changes. ok jsg.
2007-06-10Remove definitions and usage of usb_callout and related macros. These macrosMarc Balmer
were used as a layer of confusion^Wabstraction around the timeout(9) API. No binary change. ok jsg.
2007-06-10Do not turn on debugging in most/all drivers when USB_DEBUG is defined.Marc Balmer
Debugging code must be turned on selectively, e.g. by defining UDCF_DEBUG. idea from and ok jsg.
2007-06-09Remove the definition and use of if_deactivate(). It was defined empty andMarc Balmer
thus produced no code at all. No binary change. ok jsg.
2007-06-09Remove the definition and use of usb_malloc_type which is really int.Marc Balmer
While here, reindent the function prototypes in usbdi_util.h No binary change. ok jsg
2007-06-06Mechanical removal of USBBASEDEVICE. No binary change.Michael Knudsen
Tested by thib and myself. ok mbalmer jsg
2007-06-05Remove the "Static" declaration of many functions. It was defined to be emptyMarc Balmer
and it was not consistently used. It was confusing as it suggested these functions were static, which they were not. discussed with dlg and jsg, ok jsg.
2007-05-29set UDCF_DEBUG to 1 when USB_DEBUG is defined.Marc Balmer
ok mjc
2007-05-27Farewell USB_{ATTACH,MATCH,DETACH}* you will not be missed.Jonathan Gray
ok deraadt@ krw@ mbalmer@
2007-05-21Remove le{16,32}toh macrosJonathan Gray
2007-05-21Remove logprintf macroJonathan Gray
2007-05-21Remove Ether_ifattach macroJonathan Gray
2007-05-21Remove unused bswap{16,32} macrosJonathan Gray
2007-05-20Convert ehci and ucom to rwlock.Jonathan Gray
Kill the usb specific lockmgr wrapper as nothing uses it now. ok thib@
2006-09-18get rid of the usb_port.h macros that wrap our kthread create functions.David Gwynne
looks ok pascoe@
2006-04-23remove all the compat stuff for the otherbsds. this is openbsd, i preferDavid Gwynne
reading openbsd code when im working in the openbsd source tree. this makes the file immediately less confusing since you can search for a macro and see how its implemented on openbsd without having to figure out if you're in the netbsd or freebsd chunk first. "no problem with me" deraadt@
2005-11-19Remove unnecessary lockmgr() archaism that was costing too much in termsPedro Martelletto
of panics and bugfixes. Access curproc directly, do not expect a process pointer as an argument. Should fix many "process context required" bugs. Incentive and okay millert@, okay marc@. Various testing, thanks.
2005-09-26Enable the USB softintr code on platforms which __HAVE_GENERIC_SOFTINTERRUPTS.Miod Vallat
go ahead deraadt@
2005-06-17uipaq/ucom support; written by isis@www.cs.umd.eduTheo de Raadt
2005-06-02Eradicate USB quirks NOTUR and NODOORLOCK. Should no longer beKenneth R Westerback
required and no actual users of the relevant devices found. ok marco@
2005-05-25PQUIK_NOMODESENSE no longer does anything, and PQUIRK_NOBIGMODESENSE wasKenneth R Westerback
defined to be 0. Expunge references. Null entries in quirks table will be removed later.
2004-12-26strored -> storedMiod Vallat
2004-12-12backout the original method of reattaching a usb device now that we haveDavid Gwynne
something better and more flexible to use.
2004-11-23Create the init process earlier, before the root filesystem is mounted,Miod Vallat
and have it stall on a semaphore. This allows all kthread creations which could have been requested during autoconf to be processed before root is mounted as well. This causes umass devices attached to any usb with flags 1 (such as on macppc) to configure properly instead of panicing the kernel at mountroot time. From NetBSD; tested by various.
2004-11-08ugly ugly hack to allow a usb device to do a full reset of the port duringDavid Gwynne
attach. this is required by atu (atmel based usb wireless) devices. something better will be done, but we need it for now to work on atu. ok deraadt@
2004-10-05Port of NetBSD's udav driver for Davicom USB DM960 based Ethernet.Jonathan Gray
Thanks to Mark Uemura for donating several of these adapters. Tested by and ok deraadt@
2004-08-30Remove 'usb_'realloc() usage because it doesn't know the size of the oldDale Rahn
buffer, thus may copy too much, causing a memory fault. ok millert, dlg, henning, tdeval, otto
2004-05-26rehab the locator index crack monkeysTheo de Raadt
2004-04-02axe usb ethernet driver hacked into the tree by taleck@oz.netTheo de Raadt
2004-01-14Nuke SDEV_NOLUNS, SDEV_FORCELUNS, and PQUIRK_FORCELUNS quirks. AlsoKenneth R Westerback
moreluns field in scsi_link structure. Instead, treat an INQUIRY result that duplicates the INQUIRY result of LUN 0 as proof the LUN does not exist. Compensate for lack of SDEV_NOLUNS where necessary by setting sc_link->luns to 1, which has the same effect. From Marco Peereboom. Don't issue Test Unit Ready command before INQUIRY command - not necessary and potentially harmful to devices with ADEV_NOTUR quirk since quirks have not been set yet. From mycroft@NetBSD ok deraadt@, mvme* changes by miod@.