Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
uhci-hub.c File Reference

Go to the source code of this file.

Macros

#define UHCI_RH_MAXCHILD   7
 
#define WZ_BITS   (USBPORTSC_RES2 | USBPORTSC_RES3 | USBPORTSC_RES4)
 
#define RWC_BITS   (USBPORTSC_OCC | USBPORTSC_PEC | USBPORTSC_CSC)
 
#define SUSPEND_BITS   (USBPORTSC_SUSP | USBPORTSC_RD)
 
#define OK(x)   len = (x); break
 
#define CLR_RH_PORTSTAT(x)
 
#define SET_RH_PORTSTAT(x)
 

Macro Definition Documentation

#define CLR_RH_PORTSTAT (   x)
Value:
status = uhci_readw(uhci, port_addr); \
status &= ~(x); \
status |= RWC_BITS & (x); \
uhci_writew(uhci, status, port_addr)

Definition at line 80 of file uhci-hub.c.

#define OK (   x)    len = (x); break

Definition at line 78 of file uhci-hub.c.

#define RWC_BITS   (USBPORTSC_OCC | USBPORTSC_PEC | USBPORTSC_CSC)

Definition at line 34 of file uhci-hub.c.

#define SET_RH_PORTSTAT (   x)
Value:
status = uhci_readw(uhci, port_addr); \
status |= (x); \
uhci_writew(uhci, status, port_addr)

Definition at line 87 of file uhci-hub.c.

#define SUSPEND_BITS   (USBPORTSC_SUSP | USBPORTSC_RD)

Definition at line 37 of file uhci-hub.c.

#define UHCI_RH_MAXCHILD   7

Definition at line 28 of file uhci-hub.c.

#define WZ_BITS   (USBPORTSC_RES2 | USBPORTSC_RES3 | USBPORTSC_RES4)

Definition at line 31 of file uhci-hub.c.