Using RealTek interrupts

Slides:



Advertisements
Similar presentations
Synchronous Links/Networks Modems are asynchronous - penalized by start bits and stop bits on each character (and dead time) Synchronous Networks recover.
Advertisements

The 8051 Microcontroller Chapter 5 SERIAL PORT OPERATION.
The RealTek interface Introduction to the RTL-8139 network controller registers.
Implementing interrupt driven IO. Why use interrupt driven IO? Positive points –Allows asynchronous operation of IO events –Good use of resources –Leads.
Network Adapter Driver NCTU High Speed Network Lab.
Examining network packets Information about the RTL8139 needed for understanding our ‘watch235.c’ pseudo driver.
Token Ring - IEEE What the IEEE standard covers History Differences between and "Physical layer standard (gives link layer format)" Essentially.
Our ‘nic.c’ module We create a ‘character-mode’ device-driver for the 82573L NIC to use in future experiments.
ColdFire MCF5282 Universal Asynchronous Receiver/Transmitters (UARTs)
LDD Final Project Background report
The University of New Hampshire InterOperability Laboratory Serial ATA (SATA) Protocol Chapter 10 – Transport Layer.
CHAPTER 13: I/O SYSTEMS Overview Overview I/O Hardware I/O Hardware I/O API I/O API I/O Subsystem I/O Subsystem Transforming I/O Requests to Hardware Operations.
S4525A Peripherals & Enhanced FLASH 1 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 1 Peripherals.
Hardware Definitions –Port: Point of connection –Bus: Interface Daisy Chain (A=>B=>…=>X) Shared Direct Device Access –Controller: Device Electronics –Registers:
1-1 Embedded Network Interface (ENI) API Concepts Shared RAM vs. FIFO modes ENI API’s.
ECE 353 Introduction to Microprocessor Systems Michael Schulte Week 13.
Example. SBUF Register SCON Register(1) SCON Register(2)
RX Serial Peripheral Interface (RSPI)
Chapter 13 – I/O Systems (Pgs ). Devices  Two conflicting properties A. Growing uniformity in interfaces (both h/w and s/w): e.g., USB, TWAIN.
Ethernet Overview it the IEEE standard for Ethernet.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the serial communication.
GROS ( G ROS ( G ROS IS IS A R OUTING R OUTING O PERATING O PERATING S YSTEM ) Batch : 6 Guide :Sabitha. S Hemant Pillai Dean John Abraham Krishnakumar.R.
EMBEDDED SYSTEM SOFTWARE AND HARDWARE BASICS HOME TASK E MBEDDED S YSTEMS S OFTWARE T RAINING C ENTER 1.
8251 USART.
TM Freescale Confidential Proprietary Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names.
Lecture 15. Modem Controller Register 4310 DTR 0 = Polling Operator 1 = Interrupts Enabled RTS 1 =Self Test 0 =Normal.
Input/Output (I/O) Important OS function – control I/O
Serial I/O Port.
ATLAS Pre-Production ROD Status SCT Version
Lecture 2 Interrupts.
Serial mode of data transfer
Module 12: I/O Systems I/O hardware Application I/O Interface
Interrupts and Interrupts Handling
Source: Serial Port Source:
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
HIBI_PE_DMA Example.
Operating Systems (CS 340 D)
BVM Engineering College Electrical Engineering Department : Microprocessor and Microcontroller Interfacing Interrupts of 8051 Prepared by:
I/O Interface and Interrupt Systems
Lab 5 – Interrupts vs Polling
SPI Protocol and DAC Interfacing
Keyboard/Display Controller INTEL 8279
Introduction to Micro Controllers & Embedded System Design I/O Processing and Serial Port Operation Department of Electrical & Computer Engineering Missouri.
SPI Protocol and DAC Interfacing
Interrupt and Exception Programming
Computer Organization and Design
Source: Serial Port Source:
CSCI 315 Operating Systems Design
SPI Protocol and DAC Interfacing
Subject Name: Microprocessors Subject Code:10EC46 Department: Electronics and Communication Date: /20/2018.
Communications channels تقديم المهندس سنان محمد حسن
I/O Systems I/O Hardware Application I/O Interface
Creating Subnets – Network Requirements
Operating System Concepts
13: I/O Systems I/O hardwared Application I/O Interface
CS703 - Advanced Operating Systems
ATA over internet.
Chapter 13 DMA Programming.
Interrupt and Exception Programming
Configuration and Programming
NS Training Hardware.
מדעי המחשב בקהילה - שיעור עצמאי - מוטיבציה
Madalina Vintila David Wilkinson Michelle Zhang Zac Greenawalt
8279 – Programmable Keyboard/Display Interface
Source: Serial Port Source:
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Fixes and Enhancements
CS-401 Computer Architecture & Assembly Language Programming
The RealTek timer-count
Module 12: I/O Systems I/O hardwared Application I/O Interface
Presentation transcript:

Using RealTek interrupts We construct a prototype driver that supports receiving of network packets

Interrupt Mask Register 15 14 13 6 5 4 3 2 1 0 S E R T i m e O u t L e n C h g reserved R X F O V P U N / L C R X B O V F T E R T O K R E R O K 0x3C Legend ROK (Received OK packet) TOK (Transmit completed OK) RER (Received Error packet) TER (Transmit was aborted) RxBOvf (Receive Buffer Overflowed) SERR (System Error on PCI bus) RxFOvf (Receive FIFO Overflowed) LenChg (Cable Length changed) TimeOut (Timer Count == Timer Intr) PUN/LC (Packet Underrun/Link Changed) (0 = masked, 1=unmasked)

Interrupt Status Register 15 14 13 6 5 4 3 2 1 0 S E R T i m e O u t L e n C h g reserved R X F O V P U N / L C R X B O V F T E R T O K R E R O K 0x3E Legend ROK (Received OK packet) TOK (Transmit completed OK) RER (Received Error packet) TER (Transmit was aborted) RxBOvf (Receive Buffer Overflowed) SERR (System Error on PCI bus) RxFOvf (Receive FIFO Overflowed) LenChg (Cable Length changed) TimeOut (Timer Count == Timer Intr) PUN/LC (Packet Underrun/Link Changed) (0 = inactive, 1=active) NOTE: An ‘active’ bit is cleared by writing ‘1’ to that bit

A code ‘walkthrough’ We have written an initial ‘prototype’ for a character-mode device-driver for the 8139 It supports packet-reception (w/ interrupts) A companion application (‘nicread.cpp’) is useful for testing this device driver We will walk through the driver’s design Can you spot any ‘bugs’ in this driver? Can you implement packet-transmission?