Port-sparc64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Blade 2000 parallel port



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
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);


Home | Main Index | Thread Index | Old Index