change some parallel port variables
* ISE Webpack 9.1SP2
* ISE Webpack 9.1SP1
* ISE Webpack 9.1SP2
* ISE Webpack 9.1SP1
* ISE Webpack 8.1SP3
* ChipScope 9.1.02i
* ISE Webpack 8.1SP3
* ChipScope 9.1.02i
Build the library by calling `make'.
Build the library by calling `make'.
+ } else if ((port == ecpbase + PP_ECP_CFGA) && ecpbase) {
+ DPRINTF("ECP_CFGA port\n");
+ } else if ((port == ecpbase + PP_ECP_CFGB) && ecpbase) {
+ DPRINTF("ECP_CFGB port\n");
+ } else if ((port == ecpbase + PP_ECP_ECR) && ecpbase) {
+ DPRINTF("ECP_ECR port\n");
- DPRINTF("access to unsupported address range (probably ECP)!\n");
+ DPRINTF("access to unsupported address range!\n");
if (ioctl(parportfd, PPNEGOT, &pmode) == -1)
return ret;
if (ioctl(parportfd, PPNEGOT, &pmode) == -1)
return ret;
- if (cr->Card.dwItems > 1 && cr->Card.Item[1].I.IO.dwBytes) {
+ if (cr->Card.dwItems > 1 && cr->Card.Item[1].I.IO.dwAddr) {
DPRINTF("ECP mode requested\n");
DPRINTF("ECP mode requested\n");
- ecpbase = cr->Card.Item[1].I.IO.dwBytes;
+ ecpbase = (unsigned long)cr->Card.Item[1].I.IO.dwAddr;
/* TODO: Implement ECP mode */
#if 0
pmode = IEEE1284_MODE_ECP;
/* TODO: Implement ECP mode */
#if 0
pmode = IEEE1284_MODE_ECP;
#define PP_DATA 0
#define PP_STATUS 1
#define PP_CONTROL 2
#define PP_DATA 0
#define PP_STATUS 1
#define PP_CONTROL 2
+#define PP_ECP_CFGA 0
+#define PP_ECP_CFGB 1
+#define PP_ECP_ECR 2
#define PP_READ 10
#define PP_WRITE 13
#define PP_READ 10
#define PP_WRITE 13