Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / obp / obp / pkg / keyboard / tables / usb / builddi.fth
CommitLineData
920dae64
AT
1\ ========== Copyright Header Begin ==========================================
2\
3\ Hypervisor Software File: builddi.fth
4\
5\ Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
6\
7\ - Do no alter or remove copyright notices
8\
9\ - Redistribution and use of this software in source and binary forms, with
10\ or without modification, are permitted provided that the following
11\ conditions are met:
12\
13\ - Redistribution of source code must retain the above copyright notice,
14\ this list of conditions and the following disclaimer.
15\
16\ - Redistribution in binary form must reproduce the above copyright notice,
17\ this list of conditions and the following disclaimer in the
18\ documentation and/or other materials provided with the distribution.
19\
20\ Neither the name of Sun Microsystems, Inc. or the names of contributors
21\ may be used to endorse or promote products derived from this software
22\ without specific prior written permission.
23\
24\ This software is provided "AS IS," without a warranty of any kind.
25\ ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
26\ INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
27\ PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN
28\ MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR
29\ ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
30\ DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
31\ OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
32\ FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE
33\ DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY,
34\ ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
35\ SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
36\
37\ You acknowledge that this software is not designed, licensed or
38\ intended for use in the design, construction, operation or maintenance of
39\ any nuclear facility.
40\
41\ ========== Copyright Header End ============================================
42\ id: @(#)builddi.fth 1.17 06/12/12
43\ purpose:
44\ copyright: Copyright 2006 Sun Microsystems, Inc. All Rights Reserved
45\
46
47fload ${BP}/pkg/keyboard/tables/usb/options.fth
48
49." Building the USB Keyboard dropin table." cr
50
51\ Ensure that any instance data is removed
52: instance ;
53
54fload ${BP}/pkg/keyboard/headers.fth
55fload ${BP}/pkg/keyboard/keytable.fth
56fload ${BP}/pkg/keyboard/keycodes.fth
57fload ${BP}/pkg/keyboard/tables/usb/keycodes.fth
58fload ${BP}/pkg/keyboard/install.fth
59
60fload ${BP}/pkg/keyboard/tableutil.fth
61
62decimal
63showstack
64
65\ write the magic number and update the ptr
66" UKBD" dropin-buffer >kbd-di-magic swap cmove
67 h# ff dropin-buffer >kbd-di-default c!
68 dropin-buffer >kbd-di-data dropin-insert-ptr !
69
70." Loading master USB table." cr
71fload ${BP}/pkg/keyboard/tables/usb/usb-us.fth
72' US-English is base-key-table
73
74build-empty-table
75
76
77[ifdef] usa-relative-default
78
79." Keyboard definitions based upon US-English" cr
80
81: build-delta-table ( acf -- ) US-English key-table >base-table ;
82
83' build-delta-table is base-key-table
84
85[else]
86
87." Converting Keyboard Tables to *Spain* relative" cr
88
89spain key-table >base-table
90
91fload ${BP}/pkg/keyboard/tables/usb/usb-spanish.fth
92
93d# 1024 buffer: spain-base
94spain key-table spain-base /keytable move
95
96: new-delta-code
97 \ All of our diff files are built relative to US-English, so we
98 \ need to setup key-table with US-English first
99 US-English
100
101 \ However, in this case we want diffs relative to Spain so we'll copy
102 \ the already compiled Spain table into the base-table, which will be
103 \ used for diff generation.
104 spain-base >base-table
105;
106
107' new-delta-code is base-key-table
108
109[then]
110
111\ Prior to this point we have just been loading the master tables, and haven't
112\ written any dropin data yet.
113\
114' build-dropin-table is build-table
115." Loading USB Keyboard tables" cr
116
117\ Finally the keyboard data starts
118writing usbkbds.dat
119true to writing-tables?
120
121fload ${BP}/pkg/keyboard/tables/usb/usb-us.fth
122fload ${BP}/pkg/keyboard/tables/usb/usb-spanish.fth
123fload ${BP}/pkg/keyboard/tables/usb/usb-arabic.fth
124fload ${BP}/pkg/keyboard/tables/usb/usb-belgium.fth
125fload ${BP}/pkg/keyboard/tables/usb/usb-danish.fth
126fload ${BP}/pkg/keyboard/tables/usb/usb-finnish.fth
127fload ${BP}/pkg/keyboard/tables/usb/usb-french.fth
128fload ${BP}/pkg/keyboard/tables/usb/usb-german.fth
129fload ${BP}/pkg/keyboard/tables/usb/usb-italian.fth
130fload ${BP}/pkg/keyboard/tables/usb/usb-japanese.fth
131fload ${BP}/pkg/keyboard/tables/usb/usb-netherlands.fth
132fload ${BP}/pkg/keyboard/tables/usb/usb-norwegian.fth
133fload ${BP}/pkg/keyboard/tables/usb/usb-portuguese.fth
134fload ${BP}/pkg/keyboard/tables/usb/usb-swedish.fth
135fload ${BP}/pkg/keyboard/tables/usb/usb-swiss-french.fth
136fload ${BP}/pkg/keyboard/tables/usb/usb-swiss-german.fth
137fload ${BP}/pkg/keyboard/tables/usb/usb-turkeyf.fth
138fload ${BP}/pkg/keyboard/tables/usb/usb-turkeyq.fth
139fload ${BP}/pkg/keyboard/tables/usb/usb-uk.fth
140fload ${BP}/pkg/keyboard/tables/usb/aliases.fth
141
142all-done
143
144