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

/freebsd-current/share/examples/ppi/
H A Dppilcd.c274 static int hd_fd; variable
289 #define hd_sctrl(v) {u_int8_t _val; _val = hd_cbits | v; ioctl(hd_fd, PPISCTRL, &_val);}
290 #define hd_sdata(v) {u_int8_t _val; _val = v; ioctl(hd_fd, PPISDATA, &_val);}
291 #define hd_gdata(v) ioctl(hd_fd, PPIGDATA, &v)
322 if ((hd_fd = open(devname, O_RDWR, 0)) == -1)
346 if (ioctl(hd_fd, PPIGCTRL, &hd_cbits)) /* save other control bits */
358 close(hd_fd);

Completed in 103 milliseconds