Lines Matching +full:drive +full:- +full:open +full:- +full:source
5 backpack.c is a low-level protocol driver for the Micro Solutions
9 Written by: Ken Hahn (linux-dev@micro-solutions.com)
10 Clive Turvey (linux-dev@micro-solutions.com)
16 Version 1.0.0 is the backpack driver for which source is not available
17 Version 2.0.0 is the first to have source released
18 Version 2.0.1 is the "Cox-ified" source code
19 Version 2.0.2 - fixed version string usage, and made ppc functions static
40 #define PPCSTRUCT(pi) ((Interface *)(pi->private))
44 ATAPI CDROM DRIVE REGISTERS
52 #define ATAPI_DRIVE_SEL 6 /* drive select register */
66 return(-1); in bpck6_read_regr()
98 if(pi->mode >=2) in bpck6_connect()
100 PPCSTRUCT(pi)->mode=4+pi->mode-2; in bpck6_connect()
102 else if(pi->mode==1) in bpck6_connect()
104 PPCSTRUCT(pi)->mode=3; in bpck6_connect()
108 PPCSTRUCT(pi)->mode=1; in bpck6_connect()
125 static int bpck6_test_port ( PIA *pi ) /* check for 8-bit port */ in bpck6_test_port()
130 ((struct pardevice*)(pi->pardev))->port->modes, in bpck6_test_port()
131 ((struct pardevice *)(pi->pardev))->port->base); in bpck6_test_port()
135 PPCSTRUCT(pi)->ppc_id=pi->unit; in bpck6_test_port()
136 PPCSTRUCT(pi)->lpt_addr=pi->port; in bpck6_test_port()
139 if(((struct pardevice *)(pi->pardev))->port->modes & in bpck6_test_port()
145 else if(((struct pardevice *)(pi->pardev))->port->modes & in bpck6_test_port()
163 printk(KERN_DEBUG "PROBE UNIT %x on port:%x\n",pi->unit,pi->port); in bpck6_probe_unit()
167 PPCSTRUCT(pi)->ppc_id=pi->unit; in bpck6_probe_unit()
170 PPCSTRUCT(pi)->mode=1; in bpck6_probe_unit()
192 printk(KERN_DEBUG "Failed open\n"); in bpck6_probe_unit()
201 {"4-bit","8-bit","EPP-8","EPP-16","EPP-32"}; in bpck6_log_adapter()
203 printk("%s: BACKPACK Protocol Driver V"BACKPACK_VERSION"\n",pi->device); in bpck6_log_adapter()
204 printk("%s: Copyright 2001 by Micro Solutions, Inc., DeKalb IL.\n",pi->device); in bpck6_log_adapter()
205 printk("%s: BACKPACK %s, Micro Solutions BACKPACK Drive at 0x%x\n", in bpck6_log_adapter()
206 pi->device,BACKPACK_VERSION,pi->port); in bpck6_log_adapter()
207 printk("%s: Unit: %d Mode:%d (%s) Delay %d\n",pi->device, in bpck6_log_adapter()
208 pi->unit,pi->mode,mode_string[pi->mode],pi->delay); in bpck6_log_adapter()
216 pi->private = (unsigned long)p; in bpck6_init_proto()
220 printk(KERN_ERR "%s: ERROR COULDN'T ALLOCATE MEMORY\n", pi->device); in bpck6_init_proto()
221 return -1; in bpck6_init_proto()
226 kfree((void *)(pi->private)); in bpck6_release_proto()
233 .epp_first = 2, /* 2-5 use epp (need 8 ports) */