Home
last modified time | relevance | path

Searched refs:bus (Results 1 – 25 of 33) sorted by relevance

12

/lk-master/dev/bus/pci/
A Dtype1.cpp30 static uint16_t type1_read_byte(uint8_t bus, uint8_t slot, uint8_t func, uint8_t offset) { in type1_read_byte() argument
32 uint32_t address = (uint32_t)((bus << 16) | (slot << 11) | in type1_read_byte()
43 static uint16_t type1_read_half(uint8_t bus, uint8_t slot, uint8_t func, uint8_t offset) { in type1_read_half() argument
45 uint32_t address = (uint32_t)((bus << 16) | (slot << 11) | in type1_read_half()
59 uint32_t address = (uint32_t)((bus << 16) | (slot << 11) | in type1_read_word()
84 LTRACEF("state bus %#hhx dev_fn %#hhx reg %#x\n", state->bus, state->dev_fn, reg); in read_config_byte()
85 *value = type1_read_half(state->bus, state->dev_fn >> 3, state->dev_fn & 0x7, reg); in read_config_byte()
90 LTRACEF("state bus %#hhx dev_fn %#hhx reg %#x\n", state->bus, state->dev_fn, reg); in read_config_half()
91 *value = type1_read_half(state->bus, state->dev_fn >> 3, state->dev_fn & 0x7, reg); in read_config_half()
96 LTRACEF("state bus %#hhx dev_fn %#hhx reg %#x\n", state->bus, state->dev_fn, reg); in read_config_word()
[all …]
A Ddebug.cpp32 for (int bus = 0; bus <= (int)pci_get_last_bus(); bus++) { in pci_list() local
35 state.bus = bus; in pci_list()
61 state.bus, state.dev_fn >> 3, state.dev_fn & 7, in pci_list()
108 loc.bus = atoui(argv[3].str); in pci_config()
116 printf("Device at %02x:%02x.%1x vendor id=%04x device id=%04x\n", loc.bus, in pci_config()
131 loc.bus = atoui(argv[3].str); in pci_config()
141 … printf("byte at device %02x:%02x config offset %04x: %02x\n", loc.bus, loc.dev_fn, offset, value); in pci_config()
150 … printf("half at device %02x:%02x config offset %04x: %04x\n", loc.bus, loc.dev_fn, offset, value); in pci_config()
159 … printf("word at device %02x:%02x config offset %04x: %08x\n", loc.bus, loc.dev_fn, offset, value); in pci_config()
168 loc.bus = atoui(argv[3].str); in pci_config()
[all …]
A Decam.cpp89 size_t offset = (size_t)state->bus << 20; in location_to_offset()
115 LTRACEF_LEVEL(2, "state bus %#hhx dev_fn %#hhx reg %#x\n", state->bus, state->dev_fn, reg); in read_config_byte()
120 LTRACEF_LEVEL(2, "state bus %#hhx dev_fn %#hhx reg %#x\n", state->bus, state->dev_fn, reg); in read_config_half()
125 LTRACEF_LEVEL(2, "state bus %#hhx dev_fn %#hhx reg %#x\n", state->bus, state->dev_fn, reg); in read_config_word()
130 LTRACEF_LEVEL(2, "state bus %#hhx dev_fn %#hhx reg %#x\n", state->bus, state->dev_fn, reg); in write_config_byte()
135 LTRACEF_LEVEL(2, "state bus %#hhx dev_fn %#hhx reg %#x\n", state->bus, state->dev_fn, reg); in write_config_half()
140 LTRACEF_LEVEL(2, "state bus %#hhx dev_fn %#hhx reg %#x\n", state->bus, state->dev_fn, reg); in write_config_word()
A Dbios32.cpp199 state->bus = bx >> 8; in find_pci_device()
222 state->bus = bx >> 8; in find_pci_class_code()
232 bx = state->bus; in read_config_byte()
254 bx = state->bus; in read_config_half()
276 bx = state->bus; in read_config_word()
298 bx = state->bus; in write_config_byte()
320 bx = state->bus; in write_config_half()
342 bx = state->bus; in write_config_word()
383 bx = state->bus; in set_irq_hw_int()
/lk-master/dev/include/dev/
A Di2c.h26 status_t i2c_transmit(int bus, uint8_t address, const void *buf, size_t count);
27 status_t i2c_receive(int bus, uint8_t address, void *buf, size_t count);
32 status_t i2c_write_reg_bytes(int bus, uint8_t address, uint8_t reg, const uint8_t *val, size_t cnt);
33 status_t i2c_read_reg_bytes(int bus, uint8_t address, uint8_t reg, uint8_t *val, size_t cnt);
35 static inline status_t i2c_write_reg(int bus, uint8_t address, uint8_t reg, uint8_t val) { in i2c_write_reg() argument
36 return i2c_write_reg_bytes(bus, address, reg, &val, 1); in i2c_write_reg()
39 static inline status_t i2c_read_reg(int bus, uint8_t address, uint8_t reg, uint8_t *val) { in i2c_read_reg() argument
40 return i2c_read_reg_bytes(bus, address, reg, val, 1); in i2c_read_reg()
/lk-master/platform/nrf52xxx/
A Di2c_master.c70 static inline twim_dev_t *get_nrfx_twim(int bus) { in get_nrfx_twim() argument
71 switch (bus) { in get_nrfx_twim()
121 static status_t i2c_xfer(int bus, nrfx_twim_xfer_desc_t *desc) { in i2c_xfer() argument
122 twim_dev_t *twim = get_nrfx_twim(bus); in i2c_xfer()
140 status_t i2c_transmit(int bus, uint8_t address, const void *buf, size_t count) { in i2c_transmit() argument
144 return i2c_xfer(bus, &xfer); in i2c_transmit()
147 status_t i2c_receive(int bus, uint8_t address, void *buf, size_t count) { in i2c_receive() argument
151 return i2c_xfer(bus, &xfer); in i2c_receive()
154 status_t i2c_write_reg_bytes(int bus, uint8_t address, uint8_t reg, const uint8_t *val, in i2c_write_reg_bytes() argument
159 return i2c_xfer(bus, &xfer); in i2c_write_reg_bytes()
[all …]
/lk-master/dev/gpio_i2c/
A Dgpio_i2c.c223 status_t gpio_i2c_transmit(int bus, uint8_t address, const void *buf, size_t cnt) { in gpio_i2c_transmit() argument
224 gpio_i2c_state_t *s = gpio_i2c_states + bus; in gpio_i2c_transmit()
225 if (((unsigned)bus >= countof(gpio_i2c_states)) || !s->info) in gpio_i2c_transmit()
231 status_t gpio_i2c_receive(int bus, uint8_t address, void *buf, size_t cnt) { in gpio_i2c_receive() argument
232 gpio_i2c_state_t *s = gpio_i2c_states + bus; in gpio_i2c_receive()
233 if (((unsigned)bus >= countof(gpio_i2c_states)) || !s->info) in gpio_i2c_receive()
240 gpio_i2c_state_t *s = gpio_i2c_states + bus; in gpio_i2c_write_reg_bytes()
241 if (((unsigned)bus >= countof(gpio_i2c_states)) || !s->info) in gpio_i2c_write_reg_bytes()
247 status_t gpio_i2c_read_reg_bytes(int bus, uint8_t address, uint8_t reg, uint8_t *buf, size_t cnt) { in gpio_i2c_read_reg_bytes() argument
248 gpio_i2c_state_t *s = gpio_i2c_states + bus; in gpio_i2c_read_reg_bytes()
[all …]
/lk-master/platform/stm32f0xx/
A Di2c.c75 stm32_i2c_dev_t *stm32_i2c_get_dev(int bus) { in stm32_i2c_get_dev() argument
77 switch (bus) { in stm32_i2c_get_dev()
332 status_t i2c_transmit(int bus, uint8_t address, const void *buf, size_t count) { in i2c_transmit() argument
333 stm32_i2c_dev_t *i2c = stm32_i2c_get_dev(bus); in i2c_transmit()
342 status_t i2c_receive(int bus, uint8_t address, void *buf, size_t count) { in i2c_receive() argument
343 stm32_i2c_dev_t *i2c = stm32_i2c_get_dev(bus); in i2c_receive()
351 status_t i2c_write_reg_bytes(int bus, uint8_t address, uint8_t reg, const uint8_t *buf, size_t coun… in i2c_write_reg_bytes() argument
352 stm32_i2c_dev_t *i2c = stm32_i2c_get_dev(bus); in i2c_write_reg_bytes()
361 status_t i2c_read_reg_bytes(int bus, uint8_t address, uint8_t reg, uint8_t *buf, size_t count) { in i2c_read_reg_bytes() argument
362 stm32_i2c_dev_t *i2c = stm32_i2c_get_dev(bus); in i2c_read_reg_bytes()
/lk-master/external/platform/lpc15xx/lpcopen/periph_i2cs_interrupt/example/
A Dreadme.dox2 * @brief I2CS bus slave example using interrupt mode
32 /** @defgroup EXAMPLES_PERIPH_15XX_I2CSINT LPC15xx I2CS bus slave example using interrupts
35 * This example shows how to configure I2C as a bus slave in interrupt mode using
39 * addresses. Both are on the same I2C bus, but the slave controller will be
40 * configured to support 2 slave addresses on the single bus. The emulated
59 * The example also provides the master interface on the same I2C bus as the slave
/lk-master/external/platform/lpc15xx/lpcopen/periph_i2cm_interrupt/example/
A Dreadme.dox2 * @brief I2CM bus master example using interrupt mode
32 /** @defgroup EXAMPLES_PERIPH_15XX_I2CMINT LPC15xx I2CM bus master example using interrupts
35 * This example shows how to configure I2C as a bus master in interrupt mode using
/lk-master/external/platform/lpc15xx/lpcopen/periph_i2cm_polling/example/
A Dreadme.dox2 * @brief I2CM bus master example using polling mode
32 /** @defgroup EXAMPLES_PERIPH_15XX_I2CMPOLL LPC15xx I2CM bus master example using polling
35 * This example shows how to configure I2C as a bus master in polling mode using
/lk-master/external/platform/lpc15xx/lpcopen/periph_spi_interrupt/example/
A Dreadme.dox2 * @brief SPI bus master example in interrupt mode
32 /** @defgroup EXAMPLES_PERIPH_15XX_SPINT LPC15xx SPI bus master (interrupt) example
35 * This example shows how to configure SPI as a bus master in interrupt mode.<br>
/lk-master/external/platform/lpc15xx/lpcopen/periph_spi_polling/example/
A Dreadme.dox2 * @brief SPI bus master example via polling
32 /** @defgroup EXAMPLES_PERIPH_15XX_SPIPOLL LPC15xx SPI bus master (polling) example
35 * This example shows how to configure SPI as a bus master in polling mode.<br>
/lk-master/target/sifive-unleashed/dt/
A Dhifive-unleashed-a00.dts98 spi-tx-bus-width = <4>;
99 spi-rx-bus-width = <4>;
A Dhifive-unleashed-a00-microsemi.dts13 bus-range = <0x01 0x7f>;
/lk-master/external/platform/lpc15xx/lpcopen/periph_i2c_rom_polling/example/
A Dreadme.dox2 * @brief I2C bus master example using the ROM API via polling
32 /** @defgroup EXAMPLES_PERIPH_15XX_I2CPOLL LPC15xx I2C bus master (polling) example using the ROM A…
35 * This example shows how to configure I2C as a bus master in polling mode using
/lk-master/external/platform/lpc15xx/lpcopen/periph_spi_rom_polling/example/
A Dreadme.dox2 * @brief SPI bus master example using the ROM API via polling
32 /** @defgroup EXAMPLES_PERIPH_15XX_SPIROMPOLL LPC15xx SPI bus master (polling) example using the RO…
35 * This example shows how to configure SPI as a bus master in polling mode using
/lk-master/external/platform/lpc15xx/lpcopen/periph_i2c_rom_interrupt/example/
A Dreadme.dox2 * @brief I2C bus master example using the ROM API and interrupt mode
32 /** @defgroup EXAMPLES_PERIPH_15XX_I2CINT LPC15xx I2C bus master (interrupt) example using the ROM …
35 * This example shows how to configure I2C as a bus master in interrupt mode using
/lk-master/external/platform/lpc15xx/lpcopen/periph_spi_rom_interrupt/example/
A Dreadme.dox2 * @brief SPI bus master example using the ROM API and interrupt mode
32 /** @defgroup EXAMPLES_PERIPH_15XX_SPIROMPINT LPC15xx SPI bus master (interrupt) example using the …
35 * This example shows how to configure SPI as a bus master in interrupt mode using
/lk-master/external/platform/lpc15xx/lpcopen/periph_i2c_rom_interrupt_slave/example/
A Dreadme.dox2 * @brief I2C bus slave example using the ROM API via interrupts
32 /** @defgroup EXAMPLES_PERIPH_15XX_I2CSLAVEINT LPC15xx I2C bus slave (interrupt) example using the …
35 * This example shows how to configure I2C as a bus slave in interrupt mode using
/lk-master/external/platform/lpc15xx/lpcopen/periph_i2c_rom_polling_slave/example/
A Dreadme.dox2 * @brief I2C bus slave example using the ROM API in polling mode
32 /** @defgroup EXAMPLES_PERIPH_15XX_I2CSLAVEPOLL LPC15xx I2C bus slave (polling) example using the R…
35 * This example shows how to configure I2C as a bus slave in polling mode using
/lk-master/external/platform/lpc15xx/lpcopen/periph_spi_rom_interrupt_slave/example/
A Dreadme.dox2 * @brief SPI bus slave example using the ROM API via interrupts
32 /** @defgroup EXAMPLES_PERIPH_15XX_SPISLAVEINT LPC15xx SPI bus slave (interrupt) example using the …
35 * This example shows how to configure SPI as a bus slave in interrupt mode using
/lk-master/dev/bus/pci/include/dev/bus/
A Dpci.h126 uint8_t bus; member
136 uint8_t bus; member
/lk-master/external/platform/lpc15xx/lpcopen/periph_spi_rom_polling_slave/example/
A Dreadme.dox2 * @brief SPI bus slave example using the ROM API in polling mode
32 /** @defgroup EXAMPLES_PERIPH_15XX_SPISLAVEPOLL LPC15xx SPI bus slave (polling) example using the R…
35 * This example shows how to configure SPI as a bus slave in polling mode using
/lk-master/platform/pc/
A Drules.mk10 dev/bus/pci \

Completed in 24 milliseconds

12