Deleted Added
full compact
digi.c (130585) digi.c (130640)
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 130585 2004-06-16 09:47:26Z phk $
29 * $FreeBSD: head/sys/dev/digi/digi.c 130640 2004-06-17 17:16:53Z phk $
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

--- 974 unchanged lines hidden (view full) ---

1012 KASSERT(sc->fep.data == NULL, ("Uninitialised FEP variable"));
1013 KASSERT(sc->link.data == NULL, ("Uninitialised LINK variable"));
1014 KASSERT(sc->module != NULL, ("Uninitialised module name"));
1015
1016 modlen = strlen(sc->module);
1017 modfile = malloc(modlen + 6, M_TEMP, M_WAITOK);
1018 snprintf(modfile, modlen + 6, "digi_%s", sc->module);
1019 if ((res = linker_reference_module(modfile, NULL, &lf)) != 0) {
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

--- 974 unchanged lines hidden (view full) ---

1012 KASSERT(sc->fep.data == NULL, ("Uninitialised FEP variable"));
1013 KASSERT(sc->link.data == NULL, ("Uninitialised LINK variable"));
1014 KASSERT(sc->module != NULL, ("Uninitialised module name"));
1015
1016 modlen = strlen(sc->module);
1017 modfile = malloc(modlen + 6, M_TEMP, M_WAITOK);
1018 snprintf(modfile, modlen + 6, "digi_%s", sc->module);
1019 if ((res = linker_reference_module(modfile, NULL, &lf)) != 0) {
1020 if (res == ENOENT && rootdev == NODEV)
1020 if (res == ENOENT && rootdev == NULL)
1021 printf("%s: Failed to autoload module: No filesystem\n",
1022 modfile);
1023 else
1024 printf("%s: Failed %d to autoload module\n", modfile,
1025 res);
1026 }
1027 free(modfile, M_TEMP);
1028 if (res != 0)

--- 902 unchanged lines hidden ---
1021 printf("%s: Failed to autoload module: No filesystem\n",
1022 modfile);
1023 else
1024 printf("%s: Failed %d to autoload module\n", modfile,
1025 res);
1026 }
1027 free(modfile, M_TEMP);
1028 if (res != 0)

--- 902 unchanged lines hidden ---