Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/qcom_qup/qcom_spi_hw.c
Show First 20 Lines • Show All 717 Lines • ▼ Show 20 Lines | qcom_spi_hw_ack_write_pio_fifo(struct qcom_spi_softc *sc) | ||||
QCOM_SPI_WRITE_4(sc, QUP_OPERATIONAL, QUP_OP_OUT_SERVICE_FLAG); | QCOM_SPI_WRITE_4(sc, QUP_OPERATIONAL, QUP_OP_OUT_SERVICE_FLAG); | ||||
QCOM_SPI_BARRIER_WRITE(sc); | QCOM_SPI_BARRIER_WRITE(sc); | ||||
return (0); | return (0); | ||||
} | } | ||||
int | int | ||||
qcom_spi_hw_ack_opmode(struct qcom_spi_softc *sc) | qcom_spi_hw_ack_opmode(struct qcom_spi_softc *sc) | ||||
{ | { | ||||
uint32_t reg; | |||||
QCOM_SPI_ASSERT_LOCKED(sc); | QCOM_SPI_ASSERT_LOCKED(sc); | ||||
QCOM_SPI_BARRIER_READ(sc); | QCOM_SPI_BARRIER_READ(sc); | ||||
reg = QCOM_SPI_READ_4(sc, QUP_OPERATIONAL); | QCOM_SPI_READ_4(sc, QUP_OPERATIONAL); | ||||
imp: I don't think you need (void) here.
| |||||
QCOM_SPI_WRITE_4(sc, QUP_OPERATIONAL, QUP_OP_OUT_SERVICE_FLAG); | QCOM_SPI_WRITE_4(sc, QUP_OPERATIONAL, QUP_OP_OUT_SERVICE_FLAG); | ||||
QCOM_SPI_BARRIER_WRITE(sc); | QCOM_SPI_BARRIER_WRITE(sc); | ||||
return (0); | return (0); | ||||
} | } | ||||
/* | /* | ||||
* Read the value from the TX buffer into the given 32 bit DWORD, | * Read the value from the TX buffer into the given 32 bit DWORD, | ||||
* pre-shifting it into the place requested. | * pre-shifting it into the place requested. | ||||
* | * | ||||
▲ Show 20 Lines • Show All 244 Lines • Show Last 20 Lines |
I don't think you need (void) here.