Path: blob/master/arch/alpha/include/asm/console.h
15126 views
#ifndef __AXP_CONSOLE_H1#define __AXP_CONSOLE_H23/*4* Console callback routine numbers5*/6#define CCB_GETC 0x017#define CCB_PUTS 0x028#define CCB_RESET_TERM 0x039#define CCB_SET_TERM_INT 0x0410#define CCB_SET_TERM_CTL 0x0511#define CCB_PROCESS_KEYCODE 0x0612#define CCB_OPEN_CONSOLE 0x0713#define CCB_CLOSE_CONSOLE 0x081415#define CCB_OPEN 0x1016#define CCB_CLOSE 0x1117#define CCB_IOCTL 0x1218#define CCB_READ 0x1319#define CCB_WRITE 0x142021#define CCB_SET_ENV 0x2022#define CCB_RESET_ENV 0x2123#define CCB_GET_ENV 0x2224#define CCB_SAVE_ENV 0x232526#define CCB_PSWITCH 0x3027#define CCB_BIOS_EMUL 0x322829/*30* Environment variable numbers31*/32#define ENV_AUTO_ACTION 0x0133#define ENV_BOOT_DEV 0x0234#define ENV_BOOTDEF_DEV 0x0335#define ENV_BOOTED_DEV 0x0436#define ENV_BOOT_FILE 0x0537#define ENV_BOOTED_FILE 0x0638#define ENV_BOOT_OSFLAGS 0x0739#define ENV_BOOTED_OSFLAGS 0x0840#define ENV_BOOT_RESET 0x0941#define ENV_DUMP_DEV 0x0A42#define ENV_ENABLE_AUDIT 0x0B43#define ENV_LICENSE 0x0C44#define ENV_CHAR_SET 0x0D45#define ENV_LANGUAGE 0x0E46#define ENV_TTY_DEV 0x0F4748#ifdef __KERNEL__49#ifndef __ASSEMBLY__50extern long callback_puts(long unit, const char *s, long length);51extern long callback_getc(long unit);52extern long callback_open_console(void);53extern long callback_close_console(void);54extern long callback_open(const char *device, long length);55extern long callback_close(long unit);56extern long callback_read(long channel, long count, const char *buf, long lbn);57extern long callback_getenv(long id, const char *buf, unsigned long buf_size);58extern long callback_setenv(long id, const char *buf, unsigned long buf_size);59extern long callback_save_env(void);6061extern int srm_fixup(unsigned long new_callback_addr,62unsigned long new_hwrpb_addr);63extern long srm_puts(const char *, long);64extern long srm_printk(const char *, ...)65__attribute__ ((format (printf, 1, 2)));6667struct crb_struct;68struct hwrpb_struct;69extern int callback_init_done;70extern void * callback_init(void *);71#endif /* __ASSEMBLY__ */72#endif /* __KERNEL__ */7374#endif /* __AXP_CONSOLE_H */757677