1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Teach sysinstall about isa_devtab_cam

This commit is contained in:
Mike Smith 1998-10-06 07:41:49 +00:00
parent 38ed72f145
commit 4c7050bb5f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39992
3 changed files with 19 additions and 16 deletions

View File

@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id$
* $Id: uc_isa.c,v 1.4 1997/02/22 14:12:27 peter Exp $
*/
#include <sys/types.h>
@ -44,7 +44,8 @@ get_isa_info(struct kernel *kp){
char *name;
if(kp->nl[ISA_BIOTAB].n_value || kp->nl[ISA_TTYTAB].n_value || kp->nl[ISA_NETTAB].n_value ||
kp->nl[ISA_NULLTAB].n_value || kp->nl[ISA_WDCTAB].n_value || kp->nl[ISA_FDCTAB].n_value) {
kp->nl[ISA_CAMTAB].n_value || kp->nl[ISA_NULLTAB].n_value ||
kp->nl[ISA_WDCTAB].n_value || kp->nl[ISA_FDCTAB].n_value) {
idp = kp->isa_devp = (struct uc_isa *)malloc(sizeof(struct uc_isa));
total=0; /* a running total of the number of isa devices */

View File

@ -24,7 +24,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* library functions for userconfig library
*
* $Id: uc_main.c,v 1.21 1998/09/30 20:51:01 jkh Exp $
* $Id: uc_main.c,v 1.22 1998/09/30 20:54:34 jkh Exp $
*/
#include <sys/types.h>
@ -45,6 +45,7 @@ static struct nlist _nl[] = {
{"_isa_devtab_bio"},
{"_isa_devtab_tty"},
{"_isa_devtab_net"},
{"_isa_devtab_cam"},
{"_isa_devtab_null"},
{"_isa_biotab_wdc"},
{"_isa_biotab_fdc"},

View File

@ -23,25 +23,26 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id$
* $Id: uc_main.h,v 1.4 1997/02/22 14:12:32 peter Exp $
*/
#define ISA_BIOTAB 0
#define ISA_TTYTAB 1
#define ISA_NETTAB 2
#define ISA_NULLTAB 3
#define ISA_WDCTAB 4
#define ISA_FDCTAB 5
#define EISA_SET 6
#define EISA_LIST 7
#define PCI_SET 8
#define SCSI_LIST 9
#define SCSI_BUSSES 10
#define SCSI_CINIT 11
#define SCSI_DINIT 12
#define SCSI_TINIT 13
#define ISA_CAMTAB 3
#define ISA_NULLTAB 4
#define ISA_WDCTAB 5
#define ISA_FDCTAB 6
#define EISA_SET 7
#define EISA_LIST 8
#define PCI_SET 9
#define SCSI_LIST 10
#define SCSI_BUSSES 11
#define SCSI_CINIT 12
#define SCSI_DINIT 13
#define SCSI_TINIT 14
/* symbols + the null terminator */
#define NSYMBOLS 15
#define NSYMBOLS 16
struct kernel {
int fd; /* file descriptor for the kernel image, either a binary or /dev/kmem */