13.20 Hardware ●●● ●●●● ●●●●● ●●●● ●●●0● o General categories of l/o devices ●●●0 ● Storage devices ●Dsks, tapes Transmission devices o Network cards, modems Human-interface devices Screen, keyboard, mouse Specialized devices The steering of fighter, a space shuttle
7 13.2 I/O Hardware ⚫ General categories of I/O devices ⚫ Storage devices ⚫ Disks, tapes ⚫ Transmission devices ⚫ Network cards, modems ⚫ Human-interface devices ⚫ Screen, keyboard, mouse ⚫ Specialized devices ⚫ The steering of fighter, a space shuttle
13.20 Hardware ●●● ●●●● ●●●●● ●●●● Connections(Attachments) ●●●0● ●●●0 Port o A connection point serial port, a parallel port Bus(daisy chain or shared direct access) o a set of wires and a rigidly defined protocol e PCL SA, SCSI Device Controller o Is a collection of electronics that can operate a port, a bus or a device Serial port controller o scsi bus controller ●| DE controller
8 13.2 I/O Hardware ⚫ Connections (Attachments) ⚫ Port ⚫ A connection point ⚫ serial port, a parallel port ⚫ Bus (daisy chain or shared direct access) ⚫ A set of wires and a rigidly defined protocol ⚫ PCI, ISA, SCSI ⚫ Device Controller ⚫ Is a collection of electronics that can operate a port, a bus or a device ⚫ Serial port controller ⚫ SCSI bus controller ⚫ IDE controller
13.20 Hardware ●●● ●●●● ●●●●● ●●●● ●●●0● A typical PC bus structure ●●●0 monitor prc ocessor cache graphics bridge/memory controller controller memory SCSI controller PCI bus iDE disk controller expansion bus keyboard interface EXpansion busT disk parallel serial po ort
9 13.2 I/O Hardware A typical PC bus structure
●●● 13.2 /0 Hardware ●●●● ●●●●● ●●●● ●●●0● o 0 transfer Data transfer) ●●●0 Registers Typically o controller has 4 ty pes of registers Status registers Control registers Data-in registers Data-out registers o These device registers have addresses, that can be accessed by processor
10 13.2 I/O Hardware ⚫ I/O transfer (Data transfer) ⚫ Registers ⚫ Typically I/O controller has 4 types of registers ▪ Status registers ▪ Control registers ▪ Data-in registers ▪ Data-out registers ⚫ These device registers have addresses, that can be accessed by processor
●●● 13.2 /0 Hardware ●●●● ●●●●● ●●● ●●●0● o Reading and Writing of registers ●●●0 o Special l/o instructions(Direct O) Transfer a byte or a word to an l/o port address Trigger bus lines to select the proper device Move bits into or out of a device register Memory-mapped l/O Device registers are mapped into the memory address Use the standard data-transfer instructions to read and writer the registers o Direct l0 memory mapped o
11 13.2 I/O Hardware ⚫ Reading and Writing of registers ⚫ Special I/O instructions (Direct I/O) ▪ Transfer a byte or a word to an I/O port address ▪ Trigger bus lines to select the proper device ▪ Move bits into or out of a device register ⚫ Memory-mapped I/O ▪ Device registers are mapped into the memory address ▪ Use the standard data-transfer instructions to read and writer the registers ⚫ Direct I/O + memory mapped I/O