digi.c (94320) | digi.c (94321) |
---|---|
1/*- 2 * Copyright (c) 2001 Brian Somers <brian@Awfulhak.org> 3 * based on work by Slawa Olhovchenkov 4 * John Prince <johnp@knight-trosoft.com> 5 * Eric Hernes 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2001 Brian Somers <brian@Awfulhak.org> 3 * based on work by Slawa Olhovchenkov 4 * John Prince <johnp@knight-trosoft.com> 5 * Eric Hernes 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/sys/dev/digi/digi.c 94320 2002-04-10 01:12:55Z brian $ | 29 * $FreeBSD: head/sys/dev/digi/digi.c 94321 2002-04-10 01:13:57Z brian $ |
30 */ 31 32/*- 33 * TODO: 34 * Figure out what the con bios stuff is supposed to do 35 * Test with *LOTS* more cards - I only have a PCI8r and an ISA Xem. 36 */ 37 --- 985 unchanged lines hidden (view full) --- 1023 KASSERT(sc->bios.data == NULL, ("Uninitialised BIOS variable")); 1024 KASSERT(sc->fep.data == NULL, ("Uninitialised FEP variable")); 1025 KASSERT(sc->link.data == NULL, ("Uninitialised LINK variable")); 1026 KASSERT(sc->module != NULL, ("Uninitialised module name")); 1027 1028 modlen = strlen(sc->module); 1029 modfile = malloc(modlen + 6, M_TEMP, M_WAITOK); 1030 snprintf(modfile, modlen + 6, "digi_%s", sc->module); | 30 */ 31 32/*- 33 * TODO: 34 * Figure out what the con bios stuff is supposed to do 35 * Test with *LOTS* more cards - I only have a PCI8r and an ISA Xem. 36 */ 37 --- 985 unchanged lines hidden (view full) --- 1023 KASSERT(sc->bios.data == NULL, ("Uninitialised BIOS variable")); 1024 KASSERT(sc->fep.data == NULL, ("Uninitialised FEP variable")); 1025 KASSERT(sc->link.data == NULL, ("Uninitialised LINK variable")); 1026 KASSERT(sc->module != NULL, ("Uninitialised module name")); 1027 1028 modlen = strlen(sc->module); 1029 modfile = malloc(modlen + 6, M_TEMP, M_WAITOK); 1030 snprintf(modfile, modlen + 6, "digi_%s", sc->module); |
1031 if ((res = linker_reference_module(modfile, &lf)) != 0) 1032 printf("%s: Failed %d to load module\n", modfile, res); | 1031 if ((res = linker_reference_module(modfile, NULL, &lf)) != 0) { 1032 if (res == ENOENT && rootdev == NODEV) 1033 printf("%s: Failed to autoload module: No filesystem\n", 1034 modfile); 1035 else 1036 printf("%s: Failed %d to autoload module\n", modfile, 1037 res); 1038 } |
1033 free(modfile, M_TEMP); 1034 if (res != 0) 1035 return (res); 1036 1037 sym = malloc(modlen + 10, M_TEMP, M_WAITOK); 1038 snprintf(sym, modlen + 10, "digi_mod_%s", sc->module); 1039 if ((symptr = linker_file_lookup_symbol(lf, sym, 0)) == NULL) 1040 printf("digi_%s.ko: Symbol `%s' not found\n", sc->module, sym); --- 908 unchanged lines hidden --- | 1039 free(modfile, M_TEMP); 1040 if (res != 0) 1041 return (res); 1042 1043 sym = malloc(modlen + 10, M_TEMP, M_WAITOK); 1044 snprintf(sym, modlen + 10, "digi_mod_%s", sc->module); 1045 if ((symptr = linker_file_lookup_symbol(lf, sym, 0)) == NULL) 1046 printf("digi_%s.ko: Symbol `%s' not found\n", sc->module, sym); --- 908 unchanged lines hidden --- |