2.4 IA64 simulator drivers
Subsystems (3)
PATCH 1/1 2.4 IA64 simulator drivers
This patch adds drivers used only in kernels built to run on the HP simulator. In 2.5, these are under arch/ia64, but we can't easily do that in 2.4 because that causes them to be linked in the wrong order.
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas:
# ChangeSet 1.1109 -> 1.1110
# drivers/scsi/Makefile 1.19 -> 1.20
# drivers/net/Makefile 1.39 -> 1.40
# drivers/char/Makefile 1.37 -> 1.38
# (new) -> 1.1 drivers/net/simeth.c # (new) -> 1.1 drivers/char/simserial.c # (new) -> 1.1 drivers/scsi/simscsi.c # (new) -> 1.1 drivers/scsi/simscsi.h
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/09/10 [email protected] 1.1110
# HP simulator drivers
# --------------------------------------------
#
drivers/char/Makefile +1 -0
@@ -182,6 +182,7 @@ obj-$(CONFIG_HIL) += hp_keyb.o obj-$(CONFIG_MAGIC_SYSRQ) += sysrq.o obj-$(CONFIG_ATARI_DSP56K) += dsp56k.o +obj-$(CONFIG_HP_SIMSERIAL) += simserial.o obj-$(CONFIG_ROCKETPORT) += rocket.o obj-$(CONFIG_MOXA_SMARTIO) += mxser.o obj-$(CONFIG_MOXA_INTELLIO) += moxa.o
drivers/char/simserial.c new file +1094 -0
1,094 lines not on this page · raw message
drivers/net/Makefile +1 -0
@@ -153,6 +153,7 @@ obj-$(CONFIG_NE3210) += ne3210.o 8390.o obj-$(CONFIG_NET_SB1250_MAC) += sb1250-mac.o obj-$(CONFIG_B44) += b44.o +obj-$(CONFIG_HP_SIMETH) += simeth.o obj-$(CONFIG_PPP) += ppp_generic.o slhc.o obj-$(CONFIG_PPP_ASYNC) += ppp_async.o
drivers/net/simeth.c new file +537 -0
537 lines not on this page · raw message
drivers/scsi/Makefile +1 -0
@@ -54,6 +54,7 @@ obj-$(CONFIG_SUN3_SCSI) += sun3_scsi.o sun3_scsi_vme.o obj-$(CONFIG_MVME16x_SCSI) += mvme16x.o 53c7xx.o obj-$(CONFIG_BVME6000_SCSI) += bvme6000.o 53c7xx.o +obj-$(CONFIG_HP_SIMSCSI) += simscsi.o obj-$(CONFIG_SCSI_SIM710) += sim710.o obj-$(CONFIG_SCSI_ADVANSYS) += advansys.o obj-$(CONFIG_SCSI_PCI2000) += pci2000.o
drivers/scsi/simscsi.c new file +396 -0
396 lines not on this page · raw message
drivers/scsi/simscsi.h new file +39 -0
@@ -0,0 +1,39 @@ +/* +* Simulated SCSI driver. +* +* Copyright (C) 1999, 2002 Hewlett-Packard Co +* David Mosberger-Tang <[email protected]> +*/ +#ifndef SIMSCSI_H +#define SIMSCSI_H + +#define SIMSCSI_REQ_QUEUE_LEN 64 + +#define DEFAULT_SIMSCSI_ROOT "/var/ski-disks/sd" + +extern int simscsi_detect (Scsi_Host_Template *); +extern int simscsi_release (struct Scsi_Host *); +extern const char *simscsi_info (struct Scsi_Host *); +extern int simscsi_queuecommand (Scsi_Cmnd *,void (*done)(Scsi_Cmnd *)); +extern int simscsi_abort (Scsi_Cmnd *); +extern int simscsi_reset (Scsi_Cmnd *,unsigned int ); +extern int simscsi_biosparam (Disk *,kdev_t ,int []); + +#define SIMSCSI { \ + .detect = simscsi_detect, \ + .release = simscsi_release, \ + .info = simscsi_info, \ + .queuecommand = simscsi_queuecommand, \ + .abort = simscsi_abort, \ + .reset = simscsi_reset, \ + .bios_param = simscsi_biosparam, \ + .can_queue = SIMSCSI_REQ_QUEUE_LEN, \ + .this_id = -1, \ + .sg_tablesize = SG_ALL, \ + .cmd_per_lun = SIMSCSI_REQ_QUEUE_LEN, \ + .present = 0, \ + .unchecked_isa_dma = 0, \ + .use_clustering = DISABLE_CLUSTERING \ +} + +#endif /* SIMSCSI_H */