/*
  IO.h, Copyright  (c) by George Fankhauser,
  Swiss Federal Institute of Technology,
  Computer Engineering and Networks Laboratory.
 
  TOPSY -- A Teachable Operating System.
           Implementation of a tiny and simple
           micro kernel for teaching purposes.
 
  For further information, please visit http://www.tik.ee.ethz.ch/~topsy
 
  This software is provided under the terms of the GNU General Public Licence.
 
  A full copy of the GNU GPL is provided in the file COPYING found in the 
  development root of Topsy.
*/
/*
	File:                  $Source: /home/ruf/cvs_Topsy/cvs/Topsy/IO/IO.h,v $
 	Author(s):             George Fankhauser
 	Affiliation:           ETH Zuerich, TIK
 	Version:               $Revision: 2922 $
 	Creation Date:         
 	Last Date of Change:   $Date: 2007-03-19 17:48:52 +0100 (Mon, 19 Mär 2007) $      by: $Author: baderma $
*/
#ifndef _IO_H_
#define _IO_H_

/* major numbers */
#define TTY		1
#define LOOP	2
#define ETAP	3
#define TIMER	4
#define FPGA    5
#define SOCKET	6

#define PCI		10
#define AM79C970 11
#define AM79C97X 12

/* minor numbers */
#define TTYA	1
#define TTYB	2

#define FRAME	 1
#define PERF   2

/* XXX XXX XXX THIS IS A NASTY HACK: I do not have the time to fix all
   programs calling ioOpen. Until we rewrite the IO Subsystem (File Desc)
   This hack works nicely. --cjeker 20010315 */
#define IO_CONSOLE TTY, TTYA
#define IO_ETHERTAP ETAP, 1
#define IO_FPGA_COMM FPGA, 1
#define IO_LOOPBACK LOOP, 1
#define IO_PCIAM79C970 AM79C970, 1
#define IO_PCIAM79C97X AM79C97X, 1
#define IO_NETPERFORMANCETEST PCI, PERF

#include "IOConsole.h"

#endif
