Changeset View
Changeset View
Standalone View
Standalone View
head/sys/arm/broadcom/bcm2835/bcm2835_bscvar.h
Show All 26 Lines | |||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _BCM2835_BSCVAR_H | #ifndef _BCM2835_BSCVAR_H | ||||
#define _BCM2835_BSCVAR_H | #define _BCM2835_BSCVAR_H | ||||
struct { | |||||
uint32_t sda; | |||||
uint32_t scl; | |||||
unsigned long start; | |||||
} bcm_bsc_pins[] = { | |||||
{ 0, 1, 0x205000 }, /* BSC0 GPIO pins and base address. */ | |||||
{ 2, 3, 0x804000 } /* BSC1 GPIO pins and base address. */ | |||||
}; | |||||
#define BCM_BSC_BASE_MASK 0x00ffffff | |||||
struct iic_msg; | struct iic_msg; | ||||
struct bcm_bsc_softc { | struct bcm_bsc_softc { | ||||
device_t sc_dev; | device_t sc_dev; | ||||
device_t sc_iicbus; | device_t sc_iicbus; | ||||
struct mtx sc_mtx; | struct mtx sc_mtx; | ||||
struct resource * sc_mem_res; | struct resource * sc_mem_res; | ||||
struct resource * sc_irq_res; | struct resource * sc_irq_res; | ||||
Show All 29 Lines |