}, { .ulStart = 0, .ulEnd = 0, .ulFlags = BT_RESOURCE_ENUM, }, { .ulStart = 35, .ulEnd = 36, .ulFlags = BT_RESOURCE_IRQ, }, }; static const BT_INTEGRATED_DEVICE oLM3Sxx_timer0_device = { .name = "LM3Sxx,timer", .ulTotalResources = BT_ARRAY_SIZE(oLM3Sxx_timer0_resources), .pResources = oLM3Sxx_timer0_resources, }; const BT_DEVFS_INODE_DEF oLM3Sxx_timer0_inode = { .szpName = "timer0", .pDevice = &oLM3Sxx_timer0_device, }; #endif #ifdef BT_CONFIG_MACH_LM3Sxx_TIMER_1 static const BT_RESOURCE oLM3Sxx_timer1_resources[] = { { .ulStart = BT_CONFIG_MACH_LM3Sxx_TIMER1_BASE, .ulEnd = BT_CONFIG_MACH_LM3Sxx_TIMER1_BASE + BT_SIZE_4K - 1, .ulFlags = BT_RESOURCE_MEM,
.pParam = &host_ops, .ulFlags = BT_RESOURCE_PARAM, }, { #ifdef BT_CONFIG_MACH_ZYNQ_SDIO_0_ALWAYS_PRESENT .ulConfigFlags = SDHCI_FLAGS_ALWAYS_PRESENT, #else .ulConfigFlags = 0, #endif .ulFlags = BT_RESOURCE_FLAGS, }, }; BT_INTEGRATED_DEVICE_DEF oZynq_sdio_device_0 = { .name = "zynq,mmc,sdhci", .ulTotalResources = BT_ARRAY_SIZE(oZynq_sdio_resources_0), .pResources = oZynq_sdio_resources_0, }; #endif #ifdef BT_CONFIG_MACH_ZYNQ_SDIO_1 static const BT_RESOURCE oZynq_sdio_resources_1[] = { { .ulStart = 0xE0101000, .ulEnd = 0xE0101000 + BT_SIZE_4K - 1, .ulFlags = BT_RESOURCE_MEM, }, { .ulStart = 79, .ulEnd = 79, .ulFlags = BT_RESOURCE_IRQ,
static const BT_RESOURCE bcm2835_gpio_resources[] = { { .ulStart = 0x20200000, .ulEnd = 0x202000B0, .ulFlags = BT_RESOURCE_MEM, }, { .ulStart = 0, .ulEnd = 53, .ulFlags = BT_RESOURCE_IO, }, }; BT_INTEGRATED_DEVICE_DEF bcm2835_gpio_device = { .name = "bcm2835,gpio", .ulTotalResources = BT_ARRAY_SIZE(bcm2835_gpio_resources), .pResources = bcm2835_gpio_resources, }; static const BT_RESOURCE bcm2835_intc_resources[] = { { .ulStart = 0x2000B200, .ulEnd = 0x2000B200 + BT_SIZE_4K - 1, .ulFlags = BT_RESOURCE_MEM, }, { .ulStart = 0, .ulEnd = 71, .ulFlags = BT_RESOURCE_IRQ, }, };
}, { .ulStart = 0, .ulEnd = 0, .ulFlags = BT_RESOURCE_ENUM, }, { .ulStart = 41, .ulEnd = 41, .ulFlags = BT_RESOURCE_IRQ, }, }; static const BT_INTEGRATED_DEVICE oLPC17xx_can0_device = { .name = "LPC17xx,can", .ulTotalResources = BT_ARRAY_SIZE(oLPC17xx_can0_resources), .pResources = oLPC17xx_can0_resources, }; const BT_DEVFS_INODE_DEF oLPC17xx_can0_inode = { .szpName = "can0", .pDevice = &oLPC17xx_can0_device, }; #endif #ifdef BT_CONFIG_MACH_LPC17xx_CAN_1 static const BT_RESOURCE oLPC17xx_can1_resources[] = { { .ulStart = BT_CONFIG_MACH_LPC17xx_CAN1_BASE, .ulEnd = BT_CONFIG_MACH_LPC17xx_CAN1_BASE + BT_SIZE_4K - 1, .ulFlags = BT_RESOURCE_MEM,
.ulStart = 44, .ulEnd = 47, .ulFlags = BT_RESOURCE_IRQ, }, }; /** * By using the BT_INTEGRATED_DEVICE_DEF macro, we ensure that this structure is * placed into the device manager's integrated device table. * * This allows it to be automatically enumerated without "registering" a driver. **/ BT_INTEGRATED_DEVICE_DEF oLM3Sxx_gpio_device = { .name = "LM3Sxx,gpio", .ulTotalResources = BT_ARRAY_SIZE(oLM3Sxx_gpio_resources), .pResources = oLM3Sxx_gpio_resources, }; static const BT_RESOURCE oLM3Sxx_nvic_resources[] = { { .ulStart = BT_CONFIG_ARCH_ARM_NVIC_BASE, .ulEnd = BT_CONFIG_ARCH_ARM_NVIC_BASE + BT_SIZE_4K, .ulFlags = BT_RESOURCE_MEM, }, { .ulStart = 0, .ulEnd = BT_CONFIG_ARCH_ARM_NVIC_TOTAL_IRQS - 1, .ulFlags = BT_RESOURCE_IRQ, },
{ .ulStart = 52, .ulEnd = 52, .ulFlags = BT_RESOURCE_IRQ, }, }; /** * By using the BT_INTEGRATED_DEVICE_DEF macro, we ensure that this structure is * placed into the device manager's integrated device table. * * This allows it to be automatically enumerated without "registering" a driver. **/ BT_INTEGRATED_DEVICE_DEF oZynq_gpio_device = { .name = "zynq,gpio", .ulTotalResources = BT_ARRAY_SIZE(oZynq_gpio_resources), .pResources = oZynq_gpio_resources, }; static const BT_RESOURCE oZynq_intc_resources[] = { { .ulStart = BT_CONFIG_ARCH_ARM_GIC_BASE, .ulEnd = BT_CONFIG_ARCH_ARM_GIC_BASE + BT_SIZE_4K - 1, .ulFlags = BT_RESOURCE_MEM, }, { .ulStart = BT_CONFIG_ARCH_ARM_GIC_DIST_BASE, .ulEnd = BT_CONFIG_ARCH_ARM_GIC_DIST_BASE + BT_SIZE_4K - 1, .ulFlags = BT_RESOURCE_MEM, }, {
.ulStart = 44, .ulEnd = 47, .ulFlags = BT_RESOURCE_IRQ, }, }; /** * By using the BT_INTEGRATED_DEVICE_DEF macro, we ensure that this structure is * placed into the device manager's integrated device table. * * This allows it to be automatically enumerated without "registering" a driver. **/ BT_INTEGRATED_DEVICE_DEF oLPC11xx_gpio_device = { .name = "LPC11xx,gpio", .ulTotalResources = BT_ARRAY_SIZE(oLPC11xx_gpio_resources), .pResources = oLPC11xx_gpio_resources, }; static const BT_RESOURCE oLPC11xx_nvic_resources[] = { { .ulStart = BT_CONFIG_ARCH_ARM_NVIC_BASE, .ulEnd = BT_CONFIG_ARCH_ARM_NVIC_BASE + BT_SIZE_4K, .ulFlags = BT_RESOURCE_MEM, }, { .ulStart = 0, .ulEnd = BT_CONFIG_ARCH_ARM_NVIC_TOTAL_IRQS - 1, .ulFlags = BT_RESOURCE_IRQ, },
{ .ulStart = 40, .ulEnd = 40, .ulFlags = BT_RESOURCE_IRQ, }, }; /** * By using the BT_INTEGRATED_DEVICE_DEF macro, we ensure that this structure is * placed into the device manager's integrated device table. * * This allows it to be automatically enumerated without "registering" a driver. **/ BT_INTEGRATED_DEVICE_DEF oSTM32_gpio_device = { .name = "stm32,gpio", .ulTotalResources = BT_ARRAY_SIZE(oSTM32_gpio_resources), .pResources = oSTM32_gpio_resources, }; static const BT_RESOURCE oSTM32_nvic_resources[] = { { .ulStart = BT_CONFIG_ARCH_ARM_NVIC_BASE, .ulEnd = BT_CONFIG_ARCH_ARM_NVIC_BASE + BT_SIZE_4K, .ulFlags = BT_RESOURCE_MEM, }, { .ulStart = 0, .ulEnd = BT_CONFIG_ARCH_ARM_NVIC_TOTAL_IRQS - 1, .ulFlags = BT_RESOURCE_IRQ, }, };
#ifdef BT_CONFIG_MACH_LPC17xx_PWM_0 static const BT_RESOURCE oLPC17xx_pwm0_resources[] = { { .ulStart = BT_CONFIG_MACH_LPC17xx_PWM0_BASE, .ulEnd = BT_CONFIG_MACH_LPC17xx_PWM0_BASE + BT_SIZE_4K - 1, .ulFlags = BT_RESOURCE_MEM, }, { .ulStart = 0, .ulEnd = 0, .ulFlags = BT_RESOURCE_ENUM, }, { .ulStart = 25, .ulEnd = 25, .ulFlags = BT_RESOURCE_IRQ, }, }; static const BT_INTEGRATED_DEVICE oLPC17xx_pwm0_device = { .name = "LPC17xx,pwm", .ulTotalResources = BT_ARRAY_SIZE(oLPC17xx_pwm0_resources), .pResources = oLPC17xx_pwm0_resources, }; const BT_DEVFS_INODE_DEF oLPC17xx_pwm0_inode = { .szpName = "pwm0", .pDevice = &oLPC17xx_pwm0_device, }; #endif
#ifdef BT_CONFIG_MACH_LM3Sxx_MAC_0 static const BT_RESOURCE oLM3Sxx_mac0_resources[] = { { .ulStart = BT_CONFIG_MACH_LM3Sxx_MAC0_BASE, .ulEnd = BT_CONFIG_MACH_LM3Sxx_MAC0_BASE + BT_SIZE_4K - 1, .ulFlags = BT_RESOURCE_MEM, }, { .ulStart = 0, .ulEnd = 0, .ulFlags = BT_RESOURCE_ENUM, }, { .ulStart = 58, .ulEnd = 58, .ulFlags = BT_RESOURCE_IRQ, }, }; BT_INTEGRATED_DEVICE_DEF oLM3Sxx_mac0_device = { .name = "LM3Sxx,mac", .ulTotalResources = BT_ARRAY_SIZE(oLM3Sxx_mac0_resources), .pResources = oLM3Sxx_mac0_resources, }; const BT_DEVFS_INODE_DEF oLM3Sxx_mac0_inode = { .szpName = "mac0", .pDevice = &oLM3Sxx_mac0_device, }; #endif