FreeBSD Bugzilla – Attachment 10353 Details for
Bug 20783
patch to use IPACv1.2 with
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 4.70 KB, created by
Steve Roome
on 2000-08-22 17:50:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Steve Roome
Created:
2000-08-22 17:50:00 UTC
Size:
4.70 KB
patch
obsolete
>diff -ur i4b.2/layer1/i4b_avm_fritz_pci.c i4b/layer1/i4b_avm_fritz_pci.c >--- i4b.2/layer1/i4b_avm_fritz_pci.c Thu Aug 3 00:52:55 2000 >+++ i4b/layer1/i4b_avm_fritz_pci.c Mon Aug 21 19:05:12 2000 >@@ -39,7 +39,7 @@ > * > * $Id: i4b_avm_fritz_pci.c,v 1.3 1999/12/13 21:25:26 hm Exp $ > * >- * $FreeBSD: src/sys/i4b/layer1/i4b_avm_fritz_pci.c,v 1.6.2.1 2000/08/02 23:52:55 peter Exp $ >+ * $FreeBSD: src/sys/i4b/layer1/i4b_avm_fritz_pci.c,v 1.6 1999/12/14 20:48:18 hm Exp $ > * > * last edit-date: [Mon Dec 13 21:59:04 1999] > * >@@ -504,7 +504,7 @@ > > asc->avma1pp_unit = unit; > >- rid = PCIR_MAPS+4; >+ rid = PCI_MAP_REG_START+4; > asc->avma1pp_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, > 0, ~0, 1, RF_ACTIVE); > >@@ -523,7 +523,7 @@ > RF_SHAREABLE | RF_ACTIVE); > > if (asc->avma1pp_irq == NULL) { >- bus_release_resource(dev, SYS_RES_IOPORT, PCIR_MAPS+4, asc->avma1pp_res); >+ bus_release_resource(dev, SYS_RES_IOPORT, PCI_MAP_REG_START+4, asc->avma1pp_res); > printf("avma1pp%d: couldn't map interrupt\n", unit); > error = ENXIO; > goto fail; >@@ -533,7 +533,7 @@ > > if (error) { > bus_release_resource(dev, SYS_RES_IRQ, 0, asc->avma1pp_res); >- bus_release_resource(dev, SYS_RES_IOPORT, PCIR_MAPS+4, asc->avma1pp_res); >+ bus_release_resource(dev, SYS_RES_IOPORT, PCI_MAP_REG_START+4, asc->avma1pp_res); > printf("avma1pp%d: couldn't set up irq\n", unit); > goto fail; > } >diff -ur i4b.2/layer1/i4b_elsa_qs1p.c i4b/layer1/i4b_elsa_qs1p.c >--- i4b.2/layer1/i4b_elsa_qs1p.c Thu Aug 3 00:52:55 2000 >+++ i4b/layer1/i4b_elsa_qs1p.c Mon Aug 21 19:05:12 2000 >@@ -29,7 +29,7 @@ > * > * $Id: i4b_elsa_qs1p.c,v 1.2 1999/12/13 21:25:26 hm Exp $ > * >- * $FreeBSD: src/sys/i4b/layer1/i4b_elsa_qs1p.c,v 1.6.2.1 2000/08/02 23:52:55 peter Exp $ >+ * $FreeBSD: src/sys/i4b/layer1/i4b_elsa_qs1p.c,v 1.6 1999/12/14 20:48:19 hm Exp $ > * > * last edit-date: [Mon Dec 13 21:59:51 1999] > * >@@ -77,8 +77,8 @@ > #define PORT0_MAPOFF 4 > #define PORT1_MAPOFF 12 > >-#define ELSA_PORT0_MAPOFF (PCIR_MAPS+PORT0_MAPOFF) >-#define ELSA_PORT1_MAPOFF (PCIR_MAPS+PORT1_MAPOFF) >+#define ELSA_PORT0_MAPOFF (PCI_MAP_REG_START+PORT0_MAPOFF) >+#define ELSA_PORT1_MAPOFF (PCI_MAP_REG_START+PORT1_MAPOFF) > > #define PCI_QS1000_DID 0x1000 > #define PCI_QS1000_VID 0x1048 >diff -ur i4b.2/layer1/i4b_ipac.h i4b/layer1/i4b_ipac.h >--- i4b.2/layer1/i4b_ipac.h Tue Dec 14 20:48:20 1999 >+++ i4b/layer1/i4b_ipac.h Mon Aug 21 19:05:12 2000 >@@ -1,5 +1,5 @@ > /* >- * Copyright (c) 1997, 1999 Hellmuth Michaelis. All rights reserved. >+ * Copyright (c) 1997, 2000 Hellmuth Michaelis. All rights reserved. > * > * Redistribution and use in source and binary forms, with or without > * modification, are permitted provided that the following conditions >@@ -49,6 +49,7 @@ > /* chip version */ > > #define IPAC_V11 0x01 /* IPAC Version 1.1 */ >+#define IPAC_V12 0x02 /* IPAC Version 1.2 */ > > /* > * definitions of registers and bits for the IPAC ISDN chip. >diff -ur i4b.2/layer1/i4b_isic.c i4b/layer1/i4b_isic.c >--- i4b.2/layer1/i4b_isic.c Tue Dec 14 20:48:21 1999 >+++ i4b/layer1/i4b_isic.c Mon Aug 21 19:05:12 2000 >@@ -306,16 +306,17 @@ > > if(sc->sc_ipac) > { >- ret = IPAC_READ(IPAC_ID); >+ sc->sc_ipac_version = IPAC_READ(IPAC_ID); > >- switch(ret) >+ switch(sc->sc_ipac_version) > { >- case 0x01: >+ case IPAC_V11: >+ case IPAC_V12: > break; > > default: > printf("isic%d: Error, IPAC version %d unknown!\n", >- unit, ret); >+ unit, sc->sc_ipac_version); > return ENXIO; > break; > >diff -ur i4b.2/layer1/i4b_l1.h i4b/layer1/i4b_l1.h >--- i4b.2/layer1/i4b_l1.h Tue Dec 14 20:48:22 1999 >+++ i4b/layer1/i4b_l1.h Mon Aug 21 19:05:12 2000 >@@ -1,5 +1,5 @@ > /* >- * Copyright (c) 1997, 1999 Hellmuth Michaelis. All rights reserved. >+ * Copyright (c) 1997, 2000 Hellmuth Michaelis. All rights reserved. > * > * Redistribution and use in source and binary forms, with or without > * modification, are permitted provided that the following conditions >@@ -204,7 +204,8 @@ > > int sc_isac_version; /* version number of ISAC */ > int sc_hscx_version; /* version number of HSCX */ >- >+ int sc_ipac_version; /* version number of IPAC */ >+ > int sc_I430state; /* I.430 state F3 .... F8 */ > > int sc_I430T3; /* I.430 Timer T3 running */ >diff -ur i4b.2/layer1/pci_isic.c i4b/layer1/pci_isic.c >--- i4b.2/layer1/pci_isic.c Sat Aug 28 01:45:44 1999 >+++ i4b/layer1/pci_isic.c Mon Aug 21 19:05:13 2000 >@@ -220,12 +220,15 @@ > > if(sc->sc_ipac) > { >- u_int ret = IPAC_READ(IPAC_ID); >+ sc->sc_ipac_version = IPAC_READ(IPAC_ID); > >- switch(ret) >+ switch(sc->sc_ipac_version) > { >- case 0x01: >- printf("%s: IPAC PSB2115 Version 1.1\n", sc->sc_dev.dv_xname); >+ case IPAC_V11: >+ case IPAC_V12: >+ printf("%s: IPAC PSB2115 Version 1.%d\n", >+ sc->sc_dev.dv_xname, >+ sc->sc_ipac_versio); > break; > > default:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 20783
: 10353