#include <sys/ecppio.h>
Go to the source code of this file.
◆ DO_PPI_READ
| #define DO_PPI_READ |
( |
|
fd, |
|
|
|
reg, |
|
|
|
valp |
|
) |
| |
Value: do { struct ecpp_regs r; \
if ((reg) ==
PPIDATA) { (
void)ioctl(fd, ECPPIOC_GETDATA, valp); } \
else { (
void)ioctl(fd, ECPPIOC_GETREGS, &r); \
*(valp) = ((reg) ==
PPICTRL)? r.dcr: r.dsr; } \
} while(0)
typedef void(GLAPIENTRYP _GLUfuncptr)(void)
@ PPIDATA
Definition ppi.h:28
@ PPICTRL
Definition ppi.h:29
◆ DO_PPI_WRITE
| #define DO_PPI_WRITE |
( |
|
fd, |
|
|
|
reg, |
|
|
|
valp |
|
) |
| |
Value: do { struct ecpp_regs r; \
if ((reg) ==
PPIDATA) { (
void)ioctl(fd, ECPPIOC_SETDATA, valp); } \
else {
if ((reg) ==
PPICTRL) r.dcr = *(valp);
else r.dsr = *(valp); \
(
void)ioctl(fd, ECPPIOC_SETREGS, &r); } \
} while(0)
◆ ppi_claim
Value: do { \
struct ecpp_transfer_parms p; \
(
void)ioctl(fd, ECPPIOC_GETPARMS, &p); \
p.mode = ECPP_DIAG_MODE; \
(
void)ioctl(fd, ECPPIOC_SETPARMS, &p); \
} while(0);
◆ ppi_release
| #define ppi_release |
( |
|
fd | ) |
|