openbsd_network: Additions needed by newer WiFi drivers and stack.
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
#define BUS_DMA_READ (BUS_DMA_NOWRITE)
|
#define BUS_DMA_READ (BUS_DMA_NOWRITE)
|
||||||
#define BUS_DMA_WRITE (0)
|
#define BUS_DMA_WRITE (0)
|
||||||
|
#define BUS_DMA_64BIT (0) /* TODO */
|
||||||
|
|
||||||
struct bus_dmamap_obsd {
|
struct bus_dmamap_obsd {
|
||||||
bus_dma_tag_t _dmat;
|
bus_dma_tag_t _dmat;
|
||||||
|
|||||||
@@ -22,6 +22,13 @@ timeout_set(struct timeout *to, void (*fn)(void *), void *arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static inline int
|
||||||
|
timeout_initialized(struct timeout *to)
|
||||||
|
{
|
||||||
|
return to->c.c_due >= 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
timeout_pending(struct timeout *to)
|
timeout_pending(struct timeout *to)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user