00001 /* clib/include/able/sys/event.h 00002 * 00003 * ABLE event codes 00004 * 00005 * Copyright 2002 Simtec Electronics 00006 * 00007 * Permission is hereby granted, free of charge, to any person 00008 * obtaining a copy of this software and associated documentation 00009 * files (the "Software"), to deal in the Software without 00010 * restriction, including without limitation the rights to use, copy, 00011 * modify, merge, publish, distribute, sublicense, and/or sell copies 00012 * of the Software, and to permit persons to whom the Software is 00013 * furnished to do so, subject to the following conditions: 00014 * 00015 * The above copyright notice and this permission notice shall be 00016 * included in all copies or substantial portions of the Software. 00017 * 00018 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00019 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00020 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00021 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 00022 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 00023 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00024 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 00025 * SOFTWARE. 00026 * 00027 */ 00028 00029 #ifndef __ABLE_CLIB_SYS_EVENT_H 00030 #define __ABLE_CLIB_SYS_EVENT_H 1 00031 00032 typedef unsigned int event_id_t; 00033 00034 extern void event_send(event_id_t evid, void *param); 00035 00036 /* event id numbers */ 00037 00038 #define EVENTID_NEW_DEVICE (0x0001) 00039 #define EVENTID_NEW_ENDPOINT (0x0002) 00040 #define EVENTID_SYSSPEED_CHANGE (0x0003) 00041 #define EVENTID_NEW_CONSOLE (0x0004) 00042 00044 #define EVENTID_MODULE_PREINIT (0x0005) 00045 00046 #define EVENTID_MODULE_POSTINIT (0x0006) 00047 00048 /* device events */ 00049 #define EVENTID_SYS_BOOTING (0x0007) 00050 #define EVENTID_SYS_RESTART (0x0008) 00052 #define EVENTID_TASK_NEW (0x0009) 00053 #define EVENTID_TASK_EXIT (0x000A) 00054 #define EVENTID_TASK_ABORT (0x000B) 00057 #define EVENTID_NEW_FILESYSTEM (0x000C) 00058 00059 #define EVENTID_NEW_FS_ALIAS (0x000D) 00060 00061 #define EVENTID_FOOTBRIDGE_BASE 0x100000 00062 00063 #endif /* __ABLE_CLIB_SYS_EVENT_H */