Home
last modified time | relevance | path

Searched refs:hd_fd (Results 1 – 1 of 1) sorted by relevance

/dflybsd-src/share/examples/ppi/
H A Dppilcd.c277 static int hd_fd; variable
292 #define hd_sctrl(v) {u_int8_t _val; _val = hd_cbits | v; ioctl(hd_fd, PPISCTRL, &_val);}
293 #define hd_sdata(v) {u_int8_t _val; _val = v; ioctl(hd_fd, PPISDATA, &_val);}
294 #define hd_gdata(v) ioctl(hd_fd, PPIGDATA, &v)
325 if ((hd_fd = open(devname, O_RDWR, 0)) == -1) in hd44780_prepare()
349 if (ioctl(hd_fd, PPIGCTRL, &hd_cbits)) /* save other control bits */ in hd44780_prepare()
361 close(hd_fd); in hd44780_finish()