sio_cbus.c (126713) | sio_cbus.c (136029) |
---|---|
1/* 2 * Copyright (c) 2001 Yoshihiro TAKAHASHI. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 7 unchanged lines hidden (view full) --- 16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * | 1/* 2 * Copyright (c) 2001 Yoshihiro TAKAHASHI. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 7 unchanged lines hidden (view full) --- 16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * |
24 * $FreeBSD: head/sys/pc98/cbus/sio_cbus.c 126713 2004-03-07 05:39:38Z nyan $ | 24 * $FreeBSD: head/sys/pc98/cbus/sio_cbus.c 136029 2004-10-01 15:58:54Z nyan $ |
25 */ 26 27#include <sys/param.h> 28#include <sys/systm.h> 29#include <sys/bus.h> 30#include <sys/conf.h> 31#include <sys/kernel.h> 32#include <sys/lock.h> --- 23 unchanged lines hidden (view full) --- 56static driver_t sio_isa_driver = { 57 sio_driver_name, 58 sio_isa_methods, 59 0, 60}; 61 62static struct isa_pnp_id sio_ids[] = { 63 {0x0100e4a5, "RSA-98III"}, | 25 */ 26 27#include <sys/param.h> 28#include <sys/systm.h> 29#include <sys/bus.h> 30#include <sys/conf.h> 31#include <sys/kernel.h> 32#include <sys/lock.h> --- 23 unchanged lines hidden (view full) --- 56static driver_t sio_isa_driver = { 57 sio_driver_name, 58 sio_isa_methods, 59 0, 60}; 61 62static struct isa_pnp_id sio_ids[] = { 63 {0x0100e4a5, "RSA-98III"}, |
64 {0x11802fbf, NULL}, /* OYO8011 - PC-9801-12X */ | |
65 {0x4180a3b8, NULL}, /* NEC8041 - PC-9821CB-B04 */ | 64 {0x4180a3b8, NULL}, /* NEC8041 - PC-9821CB-B04 */ |
66 {0x4182a3b8, NULL}, /* NEC8241 - (Nw150) */ 67 {0x5181a3b8, NULL}, /* NEC8151 - PC-9821CB2-B04 */ 68 {0x5182a3b8, NULL}, /* NEC8251 - PC-9801-12X */ 69 {0x7182a3b8, NULL}, /* NEC8271 - PC-9801-12X */ 70 {0x9181a3b8, NULL}, /* NEC8191 - PC-9801-120 */ | 65 {0x0181a3b8, NULL}, /* NEC8101 - PC-9821CB2-B04 */ 66 {0x5181a3b8, NULL}, /* NEC8151 - Internal FAX/Modem for Cx3, Cb3 */ 67 {0x9181a3b8, NULL}, /* NEC8191 - NEC PC-9801-120 */ 68 {0xe181a3b8, NULL}, /* NEC81E1 - Internal FAX/Modem */ 69 {0x1182a3b8, NULL}, /* NEC8211 - PC-9801-123 */ 70 {0x3182a3b8, NULL}, /* NEC8231 - Internal FAX/Modem(Voice) */ 71 {0x4182a3b8, NULL}, /* NEC8241 - NEC PC-9821NR-B05 */ 72 {0x5182a3b8, NULL}, /* NEC8251 - Internel FAX/Modem */ 73 {0x7182a3b8, NULL}, /* NEC8271 - NEC PC-9801-125 */ 74 {0x11802fbf, NULL}, /* OYO8011 - Internal FAX/Modem for ValueStar(Ring) */ |
71 {0} 72}; 73 74static int 75sio_isa_probe(dev) 76 device_t dev; 77{ 78 int logical_id; 79 80 /* Check isapnp ids */ 81 if (ISA_PNP_PROBE(device_get_parent(dev), dev, sio_ids) == ENXIO) 82 return (ENXIO); 83 84 logical_id = isa_get_logicalid(dev); 85 switch (logical_id) { 86 case 0x0100e4a5: /* RSA-98III */ 87 SET_FLAG(dev, SET_IFTYPE(COM_IF_RSA98III)); 88 break; | 75 {0} 76}; 77 78static int 79sio_isa_probe(dev) 80 device_t dev; 81{ 82 int logical_id; 83 84 /* Check isapnp ids */ 85 if (ISA_PNP_PROBE(device_get_parent(dev), dev, sio_ids) == ENXIO) 86 return (ENXIO); 87 88 logical_id = isa_get_logicalid(dev); 89 switch (logical_id) { 90 case 0x0100e4a5: /* RSA-98III */ 91 SET_FLAG(dev, SET_IFTYPE(COM_IF_RSA98III)); 92 break; |
89 case 0x11802fbf: /* PC-9801-12X */ | |
90 case 0x4180a3b8: /* PC-9821CB-B04 */ | 93 case 0x4180a3b8: /* PC-9821CB-B04 */ |
91 case 0x4182a3b8: /* (Nw150) */ 92 case 0x5181a3b8: /* PC-9821CB2-B04 */ 93 case 0x5182a3b8: /* PC-9801-12X */ 94 case 0x7182a3b8: /* PC-9801-12X */ | 94 case 0x0181a3b8: /* PC-9821CB2-B04 */ 95 case 0x5181a3b8: /* for Cx3, Cb3 internal */ |
95 case 0x9181a3b8: /* PC-9801-120 */ | 96 case 0x9181a3b8: /* PC-9801-120 */ |
97 case 0xe181a3b8: /* Internal FAX/Modem */ 98 case 0x1182a3b8: /* PC-9801-123 */ 99 case 0x3182a3b8: /* FAX/Voice/Modem internal */ 100 case 0x4182a3b8: /* PC-9821NR-B05 */ 101 case 0x5182a3b8: /* FAX/Modem internal */ 102 case 0x7182a3b8: /* PC-9801-125 */ 103 case 0x11802fbf: /* for ValueStar internal */ |
|
96 SET_FLAG(dev, SET_IFTYPE(COM_IF_NS16550)); 97 break; 98 } 99 100 return (sioprobe(dev, 0, 0UL, 0)); 101} 102 103static int 104sio_isa_attach(dev) 105 device_t dev; 106{ 107 return (sioattach(dev, 0, 0UL)); 108} 109 110DRIVER_MODULE(sio, isa, sio_isa_driver, sio_devclass, 0, 0); | 104 SET_FLAG(dev, SET_IFTYPE(COM_IF_NS16550)); 105 break; 106 } 107 108 return (sioprobe(dev, 0, 0UL, 0)); 109} 110 111static int 112sio_isa_attach(dev) 113 device_t dev; 114{ 115 return (sioattach(dev, 0, 0UL)); 116} 117 118DRIVER_MODULE(sio, isa, sio_isa_driver, sio_devclass, 0, 0); |