//************************************************************ // // led.h // // Defines constants for LEDs. // // ed c. epp // // Notice // This document, as well as the software described in it, is // furnished under license and may only be used or copied in // accordance with the terms of the license. The information in // this document is furnished for informational use only, is // subject to change without notice, and should not be construed // as a commitment by Intel Corporation. Intel Corporation // assumes no responsibility or liability for any errors or // inaccuracies that may appear in this document or any software // that may be provided in association with this document. // // Except as permitted by such license, no part of this // document may be reproduced, stored in a retrieval system, // or transmitted in any form or by any means without the // express written consent of Intel Corporation. // // Intel Corporation may have patents or pending patent // applications, trademarks, copyrights, or other intellectual // property rights that relate to the described subject matter. // The furnishing of this document does not provide any license, // express or implied, by estoppel or otherwise, to any such // patents, trademarks, copyrights, or other intellectual // property rights. // // Copyright© 2004 Intel Corporation. All rights reserved. // Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, // OR 97124-6497 // //************************************************************* #ifndef __LED #define __LED #define LEDS "/dev/platx/led" #define LED_IOCTL_MAGIC 'g' #define CLED_IOSET _IO (LED_IOCTL_MAGIC, 1) #define CLED_IOGET _IO (LED_IOCTL_MAGIC, 2) #define CLED_IOSTARTAUTO _IO (LED_IOCTL_MAGIC, 3) #define CLED_IOSTOPAUTO _IO (LED_IOCTL_MAGIC, 4) #define CLED_IOAUTOSTATUS _IO (LED_IOCTL_MAGIC, 5) #define GREEN (1 << 13) #define RED (1 << 14) #define YELLOW (1 << 15) #endif