Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/microcode/daic Remove old style firmware hooks for u...



details:   https://anonhg.NetBSD.org/src/rev/d80883e755f8
branches:  trunk
changeset: 756797:d80883e755f8
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Aug 01 20:09:33 2010 +0000

description:
Remove old style firmware hooks for undistributable bootloader of Diehl
active ISDN cards.

diffstat:

 sys/dev/microcode/daic/Makefile      |  35 -----------------------
 sys/dev/microcode/daic/dnload.h-dist |  49 --------------------------------
 sys/dev/microcode/daic/gendnloadh    |  54 ------------------------------------
 3 files changed, 0 insertions(+), 138 deletions(-)

diffs (150 lines):

diff -r 9b58a8334f01 -r d80883e755f8 sys/dev/microcode/daic/Makefile
--- a/sys/dev/microcode/daic/Makefile   Sun Aug 01 18:50:24 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-# The Microcode for the Eicon.Diehl active ISDN cards comes in two parts.
-# A tiny bootstrap loader delivered by Diehl as "dnload.bin" and a
-# D-channel protocol specific file, e.g. "te_etsi.sx" for the SX card
-# running E-DSS1.
-# We can not deliver either of these files. The user is assumed to use
-# the ones distributed with his card or download the newest version from
-# http://www.diehl.de.
-# The bootstrap loader is compiled into the kernel, as it is needed to
-# identify the card. The protocol specific part is later downloaded by
-# the ISDN management daemon.
-
-.NOPATH: dnload.bin
-.if exists(dnload.bin)
-# Real part - the bootstrap image is available. We convert it into a
-# static byte array via the "gendnloadh" shell script.
-dnload.h:      dnload.bin
-       @rm -f dnload.h
-       @${HOST_SH} ./gendnloadh
-.else
-# Fake part - user did not copy the necessary file here. Compilation will
-# fail with an error explaining his fault.
-dnload.h:      dnload.h-dist
-       cp dnload.h-dist dnload.h
-.endif
-
-clean:
-       rm -f dnload.h
-
-cleandir:      clean
-
-all:   includes
-
-includes:      dnload.h
-
-.include <bsd.kinc.mk>
diff -r 9b58a8334f01 -r d80883e755f8 sys/dev/microcode/daic/dnload.h-dist
--- a/sys/dev/microcode/daic/dnload.h-dist      Sun Aug 01 18:50:24 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-/* $NetBSD: dnload.h-dist,v 1.6 2008/04/28 20:23:53 martin Exp $ */
-
-/*-
- * Copyright (c) 2002 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by Martin Husemann <martin%NetBSD.org@localhost>.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- *  File: dnload.h
- *  This file is usualy generated from the binary bootstrap image
- *  delivered with the ISDN controller. Just copy the file "dnload.bin"
- *  to this directory, run "make" here and the kernel will compile fine.
- *  If you don't have this software, download the newest version of
- *  the DOS driver software for your card from http://www.diehl.de,
- *  extract the archive and copy "dnload.bin" here.
- */
-
-#error "You did not copy 'dnload.bin' to sys/dev/microcode/daic and ran 'make' there"
-
-/* ------------------------------------------------------------------------- */
-static u_int8_t dnload[] = {
- 0
-};
-
-/* ------------------------------------------------------------------------- */
diff -r 9b58a8334f01 -r d80883e755f8 sys/dev/microcode/daic/gendnloadh
--- a/sys/dev/microcode/daic/gendnloadh Sun Aug 01 18:50:24 2010 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,54 +0,0 @@
-#!/bin/sh
-
-#
-# Copyright (c) 2002 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Martin Husemann <martin%NetBSD.org@localhost>.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-#    notice, this list of conditions and the following disclaimer in the
-#    documentation and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-
-echo "Generating dnload.h from dnload.bin"
-
-cat << EOF > dnload.h
-/*
- * File: dnload.h
- * Generated from: `ls -lT dnload.bin | awk '{print $10, $6, $7, $8, $9}'`
- * By: `id -un`@`hostname`, `date`
- *
- * DO NOT EDIT THIS FILE!
- */
-
-/* ------------------------------------------------------------------------- */
-static u_int8_t dnload[] = {
-EOF
-
-hexdump -v -e '" /* %04.4_ax */\t" 8/1 "0x%02x, " "\n"' -s 0x200 dnload.bin >> dnload.h
-
-cat << EOF >> dnload.h
- 0
-};
-
-/* ------------------------------------------------------------------------- */
-EOF



Home | Main Index | Thread Index | Old Index