base/include/asm/rtai_leds.h

Go to the documentation of this file.
00001 /* 00002 * rtai_leds.c - mini-driver for generic control of digital signals 00003 * 00004 * Copyright (C) 2000 Pierre Cloutier <pcloutier@PoseidonControls.com> 00005 * 2001 David A. Schleef <ds@schleef.org> 00006 * 00007 * This program is free software; you can redistribute it and/or 00008 * modify it under the terms of version 2 of the GNU General Public 00009 * License as published by the Free Software Foundation. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00019 */ 00020 00021 #ifndef _RTAI_ASM_I386_LEDS_H 00022 #define _RTAI_ASM_I386_LEDS_H 00023 00024 #include <asm/io.h> 00025 00026 static inline void leds_parport_func(unsigned long port, unsigned leds) { 00027 outb(~leds,port); 00028 } 00029 00030 #define LEDS_DEFAULT_FUNC leds_parport_func 00031 #define LEDS_DEFAULT_PORT 0x378 00032 00033 #endif /* !_RTAI_ASM_I386_LEDS_H */

Generated on Thu Nov 20 11:49:48 2008 for RTAI API by doxygen 1.3.8