Adding upstream version 3.35.
[syslinux-debian/hramrach.git] / keywords.inc
blob811d5bd8e94762856aebc39bd44885b9b89c1288
1 ;; -----------------------------------------------------------------------
2 ;;
3 ;;   Copyright 1994-2006 H. Peter Anvin - All Rights Reserved
4 ;;
5 ;;   This program is free software; you can redistribute it and/or modify
6 ;;   it under the terms of the GNU General Public License as published by
7 ;;   the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 ;;   Boston MA 02111-1307, USA; either version 2 of the License, or
9 ;;   (at your option) any later version; incorporated herein by reference.
11 ;; -----------------------------------------------------------------------
14 ;; keywords.inc
16 ;; Common header file for the handling of keyword hash and macros
19 %ifndef DEPEND          ; Generated file
20 %include "kwdhash.gen"
21 %endif
23 %macro keyword 2
24         dd hash_%1      ; Hash value
25         dw 0            ; No argument
26         dw %2           ; Entrypoint
27 %endmacro
29 %macro keyword 3
30         dd hash_%1      ; Hash value
31         dw %3           ; 16-bit argument
32         dw %2           ; Entrypoint
33 %endmacro
35 %macro keyword 4
36         dd hash_%1      ; Hash value
37         db %3, %4       ; 2 8-bit arguments
38         dw %2           ; Entrypoint
39 %endmacro
41 keywd_size      equ 8   ; Bytes per keyword
43                 align 4, db 0
45 %define FKeyN(n) (FKeyName+(((n)-1) << FILENAME_MAX_LG2))
47 keywd_table:
48                 keyword menu,           pc_comment
49                 keyword text,           pc_text
50                 keyword append,         pc_append
51                 keyword default,        pc_default
52                 keyword display,        pc_filecmd,     get_msg_file
53                 keyword font,           pc_filecmd,     loadfont
54                 keyword implicit,       pc_setint16,    AllowImplicit
55                 keyword kbdmap,         pc_filecmd,     loadkeys
56                 keyword kernel,         pc_kernel
57                 keyword label,          pc_label
58                 keyword prompt,         pc_setint16,    ForcePrompt
59                 keyword say,            pc_say
60                 keyword serial,         pc_serial
61                 keyword console,        pc_setint16,    DisplayCon
62                 keyword timeout,        pc_timeout,     KbdTimeout
63                 keyword totaltimeout,   pc_timeout,     TotalTimeout
64                 keyword ontimeout,      pc_ontimeout
65                 keyword onerror,        pc_onerror
66                 keyword allowoptions,   pc_setint16,    AllowOptions
67                 keyword noescape,       pc_setint16,    NoEscape
68                 keyword f1,             pc_fkey,        FKeyN(1)
69                 keyword f2,             pc_fkey,        FKeyN(2)
70                 keyword f3,             pc_fkey,        FKeyN(3)
71                 keyword f4,             pc_fkey,        FKeyN(4)
72                 keyword f5,             pc_fkey,        FKeyN(5)
73                 keyword f6,             pc_fkey,        FKeyN(6)
74                 keyword f7,             pc_fkey,        FKeyN(7)
75                 keyword f8,             pc_fkey,        FKeyN(8)
76                 keyword f9,             pc_fkey,        FKeyN(9)
77                 keyword f10,            pc_fkey,        FKeyN(10)
78                 keyword f0,             pc_fkey,        FKeyN(10)
79 %if IS_PXELINUX
80                 keyword ipappend,       pc_ipappend
81 %endif
82 %if IS_PXELINUX || IS_ISOLINUX
83                 keyword localboot,      pc_localboot
84 %endif
86 keywd_count     equ ($-keywd_table)/keywd_size