cy.c (38485) | cy.c (40565) |
---|---|
1/*- 2 * cyclades cyclom-y serial driver 3 * Andrew Herbert <andrew@werple.apana.org.au>, 17 August 1993 4 * 5 * Copyright (c) 1993 Andrew Herbert. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 13 unchanged lines hidden (view full) --- 22 * NO EVENT SHALL I BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * | 1/*- 2 * cyclades cyclom-y serial driver 3 * Andrew Herbert <andrew@werple.apana.org.au>, 17 August 1993 4 * 5 * Copyright (c) 1993 Andrew Herbert. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 13 unchanged lines hidden (view full) --- 22 * NO EVENT SHALL I BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 23 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 26 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * |
30 * $Id: cy.c,v 1.70 1998/08/20 05:21:50 bde Exp $ | 30 * $Id: cy.c,v 1.71 1998/08/23 08:26:40 bde Exp $ |
31 */ 32 33#include "opt_compat.h" 34#include "opt_devfs.h" 35 36#include "cy.h" 37 38/* --- 291 unchanged lines hidden (view full) --- 330 void *devfs_token_cuaa; 331 void *devfs_token_cual; 332 void *devfs_token_cuai; 333#endif 334}; 335 336/* PCI driver entry point. */ 337int cyattach_common __P((cy_addr cy_iobase, int cy_align)); | 31 */ 32 33#include "opt_compat.h" 34#include "opt_devfs.h" 35 36#include "cy.h" 37 38/* --- 291 unchanged lines hidden (view full) --- 330 void *devfs_token_cuaa; 331 void *devfs_token_cual; 332 void *devfs_token_cuai; 333#endif 334}; 335 336/* PCI driver entry point. */ 337int cyattach_common __P((cy_addr cy_iobase, int cy_align)); |
338ointhand2_t siointr; |
|
338 339static int cy_units __P((cy_addr cy_iobase, int cy_align)); 340static int sioattach __P((struct isa_device *dev)); 341static void cd1400_channel_cmd __P((cy_addr iobase, int cmd, int cy_align)); 342static timeout_t siodtrwakeup; 343static void comhardclose __P((struct com_s *com)); 344#if 0 345static void siointr1 __P((struct com_s *com)); --- 155 unchanged lines hidden (view full) --- 501 * XXX 502 * This kludge is to allow ISA/PCI device specifications in the 503 * kernel config file to be in any order. 504 */ 505 if (isdp->id_unit != adapter) { 506 printf("cy%d: attached as cy%d\n", isdp->id_unit, adapter); 507 isdp->id_unit = adapter; /* XXX */ 508 } | 339 340static int cy_units __P((cy_addr cy_iobase, int cy_align)); 341static int sioattach __P((struct isa_device *dev)); 342static void cd1400_channel_cmd __P((cy_addr iobase, int cmd, int cy_align)); 343static timeout_t siodtrwakeup; 344static void comhardclose __P((struct com_s *com)); 345#if 0 346static void siointr1 __P((struct com_s *com)); --- 155 unchanged lines hidden (view full) --- 502 * XXX 503 * This kludge is to allow ISA/PCI device specifications in the 504 * kernel config file to be in any order. 505 */ 506 if (isdp->id_unit != adapter) { 507 printf("cy%d: attached as cy%d\n", isdp->id_unit, adapter); 508 isdp->id_unit = adapter; /* XXX */ 509 } |
510 isdp->id_ointr = siointr; |
|
509 isdp->id_ri_flags |= RI_FAST; 510 return (1); 511} 512 513int 514cyattach_common(cy_iobase, cy_align) 515 cy_addr cy_iobase; 516 int cy_align; --- 2100 unchanged lines hidden --- | 511 isdp->id_ri_flags |= RI_FAST; 512 return (1); 513} 514 515int 516cyattach_common(cy_iobase, cy_align) 517 cy_addr cy_iobase; 518 int cy_align; --- 2100 unchanged lines hidden --- |