aboutsummaryrefslogtreecommitdiffstats
path: root/drv_generic_parport.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-05-05 08:36:12 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-05-05 08:36:12 +0000
commitc5d0303bea3b1082b6e7766090dce347a1213bc5 (patch)
tree007b338bb01ddf279515830900a5b96e21e96b7a /drv_generic_parport.c
parentf6453b924e3e06b9f660bdf1d1ae7eba8a1c7924 (diff)
downloadlcd4linux-c5d0303bea3b1082b6e7766090dce347a1213bc5.tar.gz
[lcd4linux @ 2005-05-05 08:36:12 by reinelt]
changed SELECT to SLCTIN git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@542 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_generic_parport.c')
-rw-r--r--drv_generic_parport.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/drv_generic_parport.c b/drv_generic_parport.c
index e39da76..cb173bd 100644
--- a/drv_generic_parport.c
+++ b/drv_generic_parport.c
@@ -1,4 +1,4 @@
-/* $Id: drv_generic_parport.c,v 1.14 2005/05/04 06:13:05 reinelt Exp $
+/* $Id: drv_generic_parport.c,v 1.15 2005/05/05 08:36:12 reinelt Exp $
*
* generic driver helper for serial and parport access
*
@@ -23,6 +23,9 @@
*
*
* $Log: drv_generic_parport.c,v $
+ * Revision 1.15 2005/05/05 08:36:12 reinelt
+ * changed SELECT to SLCTIN
+ *
* Revision 1.14 2005/05/04 06:13:05 reinelt
* parport_wire_status() added
*
@@ -281,15 +284,19 @@ static unsigned char drv_generic_parport_signal_ctrl (const char *name, const ch
} else if(strcasecmp(signal,"INIT") == 0) {
wire = PARPORT_CONTROL_INIT;
info ("%s: wiring: [DISPLAY:%s]<==>[PARPORT:INIT (Pin 16)]", Driver, name);
- } else if(strcasecmp(signal,"SELECT") == 0 || strcasecmp(signal,"SLCTIN") == 0) {
+ } else if(strcasecmp(signal,"SLCTIN") == 0) {
+ wire = PARPORT_CONTROL_SELECT;
+ info ("%s: wiring: [DISPLAY:%s]<==>[PARPORT:SLCTIN (Pin 17)]", Driver, name);
+ } else if(strcasecmp(signal,"SELECT") == 0) {
wire = PARPORT_CONTROL_SELECT;
+ error ("%s: SELECT is deprecated. Please use SLCTIN instead!", Driver);
info ("%s: wiring: [DISPLAY:%s]<==>[PARPORT:SLCTIN (Pin 17)]", Driver, name);
} else if(strcasecmp(signal,"GND") == 0) {
wire = 0;
info ("%s: wiring: [DISPLAY:%s]<==>[PARPORT:GND]", Driver, name);
} else {
error ("%s: unknown signal <%s> for control line <%s>", Driver, signal, name);
- error ("%s: should be STROBE, AUTOFD, INIT, SELECT or GND", Driver);
+ error ("%s: should be STROBE, AUTOFD, INIT, SLCTIN or GND", Driver);
return 0xff;
}
@@ -359,7 +366,7 @@ static unsigned char drv_generic_parport_signal_status (const char *name, const
info ("%s: wiring: [DISPLAY:%s]<==>[PARPORT:GND]", Driver, name);
} else {
error ("%s: unknown signal <%s> for status line <%s>", Driver, signal, name);
- error ("%s: should be STROBE, AUTOFD, INIT, SELECT or GND", Driver);
+ error ("%s: should be ERROR, SELECT, PAPEROUT, ACK, BUSY or GND", Driver);
return 0xff;
}
@@ -574,7 +581,7 @@ void drv_generic_parport_debug(void)
control=ctr;
}
- debug ("%cSTROBE %cAUTOFD %cINIT %cSELECT",
+ debug ("%cSTROBE %cAUTOFD %cINIT %cSLCTIN",
control & PARPORT_CONTROL_STROBE ? '-':'+',
control & PARPORT_CONTROL_AUTOFD ? '-':'+',
control & PARPORT_CONTROL_INIT ? '+':'-',