FreeBSD kernel usb device Code
dwc_otg_acpi.c File Reference
#include <sys/cdefs.h>
#include "opt_acpi.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
#include <sys/condvar.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/module.h>
#include <sys/mutex.h>
#include <sys/rman.h>
#include <contrib/dev/acpica/include/acpi.h>
#include <contrib/dev/acpica/include/accommon.h>
#include <dev/acpica/acpivar.h>
#include <dev/usb/usb.h>
#include <dev/usb/usbdi.h>
#include <dev/usb/usb_core.h>
#include <dev/usb/usb_busdma.h>
#include <dev/usb/usb_process.h>
#include <dev/usb/usb_util.h>
#include <dev/usb/usb_controller.h>
#include <dev/usb/usb_bus.h>
#include <dev/usb/controller/dwc_otg.h>
Include dependency graph for dwc_otg_acpi.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
static int dwc_otg_probe (device_t dev)
 
static int dwc_otg_attach (device_t dev)
 
static int dwc_otg_detach (device_t dev)
 
 DRIVER_MODULE (dwcotg, acpi, dwc_otg_driver, dwc_otg_devclass, 0, 0)
 
 MODULE_DEPEND (dwcotg, usb, 1, 1, 1)
 

Variables

static device_probe_t dwc_otg_probe
 
static device_attach_t dwc_otg_attach
 
static device_attach_t dwc_otg_detach
 
static char * dwc_otg_ids []
 
static device_method_t dwc_otg_methods []
 
static driver_t dwc_otg_driver
 
static devclass_t dwc_otg_devclass
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ DRIVER_MODULE()

DRIVER_MODULE ( dwcotg  ,
acpi  ,
dwc_otg_driver  ,
dwc_otg_devclass  ,
,
 
)

◆ dwc_otg_attach()

static int dwc_otg_attach ( device_t  dev)
static

◆ dwc_otg_detach()

static int dwc_otg_detach ( device_t  dev)
static

◆ dwc_otg_probe()

static int dwc_otg_probe ( device_t  dev)
static

Definition at line 72 of file dwc_otg_acpi.c.

References dev, and dwc_otg_ids.

◆ MODULE_DEPEND()

MODULE_DEPEND ( dwcotg  ,
usb  ,
,
,
 
)

Variable Documentation

◆ dwc_otg_attach

device_attach_t dwc_otg_attach
static

Definition at line 63 of file dwc_otg_acpi.c.

Referenced by hisi_dwc_otg_attach().

◆ dwc_otg_detach

device_attach_t dwc_otg_detach
static

Definition at line 64 of file dwc_otg_acpi.c.

Referenced by dwc_otg_attach().

◆ dwc_otg_devclass

devclass_t dwc_otg_devclass
static

Definition at line 181 of file dwc_otg_acpi.c.

◆ dwc_otg_driver

driver_t dwc_otg_driver
static
Initial value:
= {
.name = "dwcotg",
.methods = dwc_otg_methods,
.size = sizeof(struct dwc_otg_softc),
}
static device_method_t dwc_otg_methods[]
Definition: dwc_otg_acpi.c:163

Definition at line 175 of file dwc_otg_acpi.c.

◆ dwc_otg_ids

char* dwc_otg_ids[]
static
Initial value:
= {
"BCM2848",
NULL
}

Definition at line 66 of file dwc_otg_acpi.c.

Referenced by dwc_otg_probe().

◆ dwc_otg_methods

device_method_t dwc_otg_methods[]
static
Initial value:
= {
DEVMETHOD(device_probe, dwc_otg_probe),
DEVMETHOD(device_attach, dwc_otg_attach),
DEVMETHOD(device_detach, dwc_otg_detach),
DEVMETHOD(device_suspend, bus_generic_suspend),
DEVMETHOD(device_resume, bus_generic_resume),
DEVMETHOD(device_shutdown, bus_generic_shutdown),
DEVMETHOD_END
}
static device_attach_t dwc_otg_detach
Definition: dwc_otg_acpi.c:64
static device_probe_t dwc_otg_probe
Definition: dwc_otg_acpi.c:62
static device_attach_t dwc_otg_attach
Definition: dwc_otg_acpi.c:63

Definition at line 163 of file dwc_otg_acpi.c.

◆ dwc_otg_probe

device_probe_t dwc_otg_probe
static

Definition at line 62 of file dwc_otg_acpi.c.