version 1.5.2.2, 2013/01/23 00:06:13 |
version 1.5.2.3, 2014/05/22 11:40:37 |
Line 151 static inline void udl_copy_line(struct |
|
Line 151 static inline void udl_copy_line(struct |
|
static inline void udl_fill_line(struct udl_softc *, uint16_t, int, int); |
static inline void udl_fill_line(struct udl_softc *, uint16_t, int, int); |
static inline void udl_draw_line(struct udl_softc *, uint16_t *, int, |
static inline void udl_draw_line(struct udl_softc *, uint16_t *, int, |
int); |
int); |
|
#ifdef notyet |
static inline void udl_draw_line_comp(struct udl_softc *, uint16_t *, int, |
static inline void udl_draw_line_comp(struct udl_softc *, uint16_t *, int, |
int); |
int); |
|
#endif |
|
|
static int udl_cmd_send(struct udl_softc *); |
static int udl_cmd_send(struct udl_softc *); |
static void udl_cmd_send_async(struct udl_softc *); |
static void udl_cmd_send_async(struct udl_softc *); |
Line 617 udl_mmap(void *v, void *vs, off_t off, i |
|
Line 619 udl_mmap(void *v, void *vs, off_t off, i |
|
struct udl_softc *sc = v; |
struct udl_softc *sc = v; |
vaddr_t vaddr; |
vaddr_t vaddr; |
paddr_t paddr; |
paddr_t paddr; |
bool rv; |
bool rv __diagused; |
|
|
if (off < 0 || off > roundup2(UDL_FBMEM_SIZE(sc), PAGE_SIZE)) |
if (off < 0 || off > roundup2(UDL_FBMEM_SIZE(sc), PAGE_SIZE)) |
return -1; |
return -1; |
Line 1300 udl_draw_line(struct udl_softc *sc, uint |
|
Line 1302 udl_draw_line(struct udl_softc *sc, uint |
|
udl_cmd_add_buf(sc, buf, width); |
udl_cmd_add_buf(sc, buf, width); |
} |
} |
|
|
|
#ifdef notyet |
static inline int |
static inline int |
udl_cmd_add_buf_comp(struct udl_softc *sc, uint16_t *buf, int width) |
udl_cmd_add_buf_comp(struct udl_softc *sc, uint16_t *buf, int width) |
{ |
{ |
Line 1409 udl_draw_line_comp(struct udl_softc *sc, |
|
Line 1412 udl_draw_line_comp(struct udl_softc *sc, |
|
width -= width_cur; |
width -= width_cur; |
} |
} |
} |
} |
|
#endif |
|
|
static int |
static int |
udl_cmd_send(struct udl_softc *sc) |
udl_cmd_send(struct udl_softc *sc) |
Line 1530 udl_cmd_send_async_cb(usbd_xfer_handle x |
|
Line 1534 udl_cmd_send_async_cb(usbd_xfer_handle x |
|
TAILQ_REMOVE(&sc->sc_xfercmd, cmdq, cq_chain); |
TAILQ_REMOVE(&sc->sc_xfercmd, cmdq, cq_chain); |
udl_cmdq_put(sc, cmdq); |
udl_cmdq_put(sc, cmdq); |
|
|
/* wakeup xfer op that sleeps for a free xfer buffer */ |
/* signal xfer op that sleeps for a free xfer buffer */ |
cv_signal(&sc->sc_cv); |
cv_signal(&sc->sc_cv); |
mutex_exit(&sc->sc_mtx); |
mutex_exit(&sc->sc_mtx); |
} |
} |