Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
solaris_ecpp.h File Reference
#include <sys/ecppio.h>
+ Include dependency graph for solaris_ecpp.h:

Go to the source code of this file.

Macros

#define ppi_claim(fd)
 
#define ppi_release(fd)
 
#define DO_PPI_READ(fd, reg, valp)
 
#define DO_PPI_WRITE(fd, reg, valp)
 

Macro Definition Documentation

◆ 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

#define ppi_claim (   fd)
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)