openbsd_network: Additions needed by newer WiFi drivers and stack.

This commit is contained in:
Augustin Cavalier
2026-02-24 20:15:16 -05:00
parent 69844c0039
commit 07dd1db8ff
2 changed files with 8 additions and 0 deletions
@@ -12,6 +12,7 @@
#define BUS_DMA_READ (BUS_DMA_NOWRITE)
#define BUS_DMA_WRITE (0)
#define BUS_DMA_64BIT (0) /* TODO */
struct bus_dmamap_obsd {
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
timeout_pending(struct timeout *to)
{