Re: Blade 2000 parallel port

Martin Husemann <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc64
Message-ID <[email protected]>
On Wed, Jul 17, 2013 at 10:52:28AM +0200, BERTRAND Joël wrote:
> 	Hello,
> 
> 	Is Blade 2000 parallel port supported ? I can see in dmesg :
> parallel at ebus0 addr 300278-300287, 30002e-30002f, 700000-70000f ipl 
> 1c not configured

Can you try attached patch? No guarantees, compile-tested only.
It used to work on U5/U10, but I never missed it in recent years
on newer hardware, no peripherals for testing.

Martin
patch (text/plain, 699 B)
Index: lpt_ebus.c
===================================================================
RCS file: /cvsroot/src/sys/arch/sparc64/dev/lpt_ebus.c,v
retrieving revision 1.23
diff -u -r1.23 lpt_ebus.c
--- lpt_ebus.c	1 Jul 2011 18:48:36 -0000	1.23
+++ lpt_ebus.c	18 Jul 2013 07:07:31 -0000
@@ -53,13 +53,15 @@
     lpt_ebus_match, lpt_ebus_attach, NULL, NULL);
 
 #define	ROM_LPT_NAME	"ecpp"
+#define	ROM_LPT_NAME2	"parallel"
 
 int
 lpt_ebus_match(device_t parent, cfdata_t match, void *aux)
 {
 	struct ebus_attach_args *ea = aux;
 
-	if (strcmp(ea->ea_name, ROM_LPT_NAME) == 0)
+	if (strcmp(ea->ea_name, ROM_LPT_NAME) == 0
+	    || strcmp(ea->ea_name, ROM_LPT_NAME2) == 0)
 		return (1);
 
 	return (0);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.