Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/broadcom/bcm2835/bcm2835_spivar.h
Show All 26 Lines | |||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _BCM2835_SPIVAR_H_ | #ifndef _BCM2835_SPIVAR_H_ | ||||
#define _BCM2835_SPIVAR_H_ | #define _BCM2835_SPIVAR_H_ | ||||
/* | |||||
* Only the available pins are listed here. | |||||
* i.e. CS2 isn't available. | |||||
*/ | |||||
uint32_t bcm_spi_pins[] = { | |||||
7, /* CS1 */ | |||||
8, /* CS0 */ | |||||
9, /* MISO */ | |||||
10, /* MOSI */ | |||||
11 /* SCLK */ | |||||
}; | |||||
struct bcm_spi_softc { | struct bcm_spi_softc { | ||||
device_t sc_dev; | device_t sc_dev; | ||||
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; | ||||
struct spi_command *sc_cmd; | struct spi_command *sc_cmd; | ||||
bus_space_tag_t sc_bst; | bus_space_tag_t sc_bst; | ||||
bus_space_handle_t sc_bsh; | bus_space_handle_t sc_bsh; | ||||
Show All 20 Lines |