📄 stallion.txt
字号:
Stallion Multiport Serial Driver Readme---------------------------------------Copyright (C) 1994-1999, Stallion Technologies (support@stallion.com).Version: 5.5.1Date: 28MAR991. INTRODUCTIONThere are two drivers that work with the different families of Stallionmultiport serial boards. One is for the Stallion smart boards - that isEasyIO, EasyConnection 8/32 and EasyConnection 8/64-PCI, the other forthe true Stallion intelligent multiport boards - EasyConnection 8/64(ISA, EISA, MCA), EasyConnection/RA-PCI, ONboard and Brumby.If you are using any of the Stallion intelligent multiport boards (Brumby,ONboard, EasyConnection 8/64 (ISA, EISA, MCA), EasyConnection/RA-PCI) withLinux you will need to get the driver utility package. This package isavailable at most of the Linux archive sites (and on CD-ROMs that containthese archives). The file will be called stallion-X.X.X.tar.gz where X.X.Xwill be the version number. In particular this package contains the boardembedded executable images that are required for these boards. It alsocontains the downloader program. These boards cannot be used without this.The Stallion Technologies ftp site, ftp.stallion.com, will always havethe latest version of the driver utility package. Other sites that usuallyhave the latest version are tsx-11.mit.edu, sunsite.unc.edu and theirmirrors.ftp.stallion.com:/drivers/ata5/Linux/v550.tar.gztsx-11.mit.edu:/pub/linux/packages/stallion/stallion-5.5.0.tar.gzsunsite.unc.edu:/pub/Linux/kernel/patches/serial/stallion-5.5.0.tar.gzAs of the printing of this document the latest version of the driverutility package is 5.5.0. If a later version is now available then youshould use the latest version.If you are using the EasyIO, EasyConnection 8/32 or EasyConnection 8/64-PCIboards then you don't need this package. Although it does have a handyscript to create the /dev device nodes for these boards, and a serial statsdisplay program.If you require DIP switch settings, EISA or MCA configuration files, or anyother information related to Stallion boards then have a look at Stallion'sweb pages at http://www.stallion.com.2. INSTALLATIONThe drivers can be used as loadable modules or compiled into the kernel.You can choose which when doing a "config" on the kernel.All ISA, EISA and MCA boards that you want to use need to be configured intothe driver(s). All PCI boards will be automatically detected when you loadthe driver - so they do not need to be entered into the driver(s)configuration structure. Note that kernel PCI support is required to use PCIboards.There are two methods of configuring ISA, EISA and MCA boards into the drivers.If using the driver as a loadable module then the simplest method is to passthe driver configuration as module arguments. The other method is to modifythe driver source to add configuration lines for each board in use.If you have pre-built Stallion driver modules then the module argumentconfiguration method should be used. A lot of Linux distributions come withpre-built driver modules in /lib/modules/X.Y.Z/misc for the kernel in use.That makes things pretty simple to get going.2.1 MODULE DRIVER CONFIGURATION:The simplest configuration for modules is to use the module load argumentsto configure any ISA, EISA or MCA boards. PCI boards are automaticallydetected, so do not need any additional configuration at all.If using EasyIO, EasyConnection 8/32 ISA or MCA, or EasyConnection 8/63-PCIboards then use the "stallion" driver module, Otherwise if you are usingan EasyConnection 8/64 ISA, EISA or MCA, EasyConnection/RA-PCI, ONboard,Brumby or original Stallion board then use the "istallion" driver module.Typically to load up the smart board driver use: insmod stallion.oThis will load the EasyIO and EasyConnection 8/32 driver. It will output amessage to say that it loaded and print the driver version number. It willalso print out whether it found the configured boards or not. These messagesmay not appear on the console, but typically are always logged to/var/adm/messages or /var/log/syslog files - depending on how the klogd andsyslogd daemons are setup on your system.To load the intelligent board driver use: insmod istallion.oIt will output similar messages to the smart board driver.If not using an auto-detectable board type (that is a PCI board) then youwill also need to supply command line arguments to the "insmod" commandwhen loading the driver. The general form of the configuration argument is board?=<name>[,<ioaddr>[,<addr>][,<irq>]]where: board? -- specifies the arbitrary board number of this board, can be in the range 0 to 3. name -- textual name of this board. The board name is the comman board name, or any "shortened" version of that. The board type number may also be used here. ioaddr -- specifies the I/O address of this board. This argument is optional, but should generally be specified. addr -- optional second address argument. Some board types require a second I/O address, some require a memory address. The exact meaning of this argument depends on the board type. irq -- optional IRQ line used by this board.Up to 4 board configuration arguments can be specified on the load line.Here is some examples: insmod stallion.o board0=easyio,0x2a0,5This configures an EasyIO board as board 0 at I/O address 0x2a0 and IRQ 5. insmod istallion.o board3=ec8/64,0x2c0,0xcc000This configures an EasyConnection 8/64 ISA as board 3 at I/O address 0x2c0 atmemory address 0xcc000. insmod stallion.o board1=ec8/32-at,0x2a0,0x280,10This configures an EasyConnection 8/32 ISA board at primary I/O address 0x2a0,secondary address 0x280 and IRQ 10.You will probably want to enter this module load and configuration informationinto your system startup scripts so that the drivers are loaded and configuredon each system boot. Typically the start up script would be something line/etc/rc.d/rc.modules.2.2 STATIC DRIVER CONFIGURATION:For static driver configuration you need to modify the driver source code.Entering ISA, EISA and MCA boards into the driver(s) configuration structureinvolves editing the driver(s) source file. It's pretty easy if you followthe instructions below. Both drivers can support up to 4 boards. The smartcard driver (the stallion.c driver) supports any combination of EasyIO andEasyConnection 8/32 boards (up to a total of 4). The intelligent driversupports any combination of ONboards, Brumbys, Stallions and EasyConnection8/64 (ISA and EISA) boards (up to a total of 4).To set up the driver(s) for the boards that you want to use you need toedit the appropriate driver file and add configuration entries.If using EasyIO or EasyConnection 8/32 ISA or MCA boards, do: vi /usr/src/linux/drivers/char/stallion.c - find the definition of the stl_brdconf array (of structures) near the top of the file - modify this to match the boards you are going to install (the comments before this structure should help) - save and exitIf using ONboard, Brumby, Stallion or EasyConnection 8/64 (ISA or EISA)boards then do: vi /usr/src/linux/drivers/char/istallion.c - find the definition of the stli_brdconf array (of structures) near the top of the file - modify this to match the boards you are going to install (the comments before this structure should help) - save and exitOnce you have set up the board configurations then you are ready to buildthe kernel or modules.When the new kernel is booted, or the loadable module loaded then thedriver will emit some kernel trace messages about whether the configuredboards were detected or not. Depending on how your system logger is setup these may come out on the console, or just be logged to/var/adm/messages or /var/log/syslog. You should check the messages toconfirm that all is well.2.3 SHARING INTERRUPTSIt is possible to share interrupts between multiple EasyIO andEasyConnection 8/32 boards in an EISA system. To do this you must be usingstatic driver configuration, modifying the driver source code to add driverconfiguration. Then a couple of extra things are required:1. When entering the board resources into the stallion.c file you need to
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -