Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | # id: @(#)dropins.src 1.4 06/11/22 |
2 | # purpose: list the dropins required by this platform | |
3 | # copyright: Copyright 2006 Sun Microsystems, Inc. All Rights Reserved | |
4 | # copyright: Use is subject to license terms. | |
5 | # | |
6 | # | |
7 | # Format: key <data> | |
8 | # build <command to run> | |
9 | # depend <file> | |
10 | # target <dropin-src> <dropin-name> | |
11 | # source{ [code] terminated by }source | |
12 | # include <file> | |
13 | # | |
14 | version2 | |
15 | ||
16 | # create the code to execute fcode dropins | |
17 | source{ | |
18 | caps off | |
19 | " /packages/SUNW,builtin-drivers" find-device | |
20 | ||
21 | headerless | |
22 | : load-driver ( str$ -- ) | |
23 | find-drop-in if ( adr,len ) | |
24 | >r dup >r 1 byte-load ( ) | |
25 | r> r> free-drop-in ( ) | |
26 | then ( ) | |
27 | ; | |
28 | headers | |
29 | ||
30 | : interrupt-property ( n -- ) " interrupts" integer-property ; | |
31 | ||
32 | : get-fcode ( adr1 len1 adr2 len2 -- true | false ) | |
33 | find-drop-in if | |
34 | 2dup >r >r | |
35 | rot min rot swap move | |
36 | r> r> free-drop-in | |
37 | true | |
38 | else 2drop false | |
39 | then | |
40 | ; | |
41 | ||
42 | headers | |
43 | ||
44 | }source | |
45 | ||
46 | build ${MAKEDI} | |
47 | ||
48 | target bootprom.bin bootprom | |
49 | ||
50 | depend ${BP}/dev/sun4v-devices/vnexus/depend.mk | |
51 | target vnexus.fc SUNW,vnexus | |
52 | source{ | |
53 | : onboard-devices ( -- ) | |
54 | diagnostic-mode? if | |
55 | ." Loading onboard drivers: " | |
56 | then | |
57 | 0 0 " 100" " /" begin-package | |
58 | " SUNW,vnexus" load-driver | |
59 | end-package | |
60 | ; | |
61 | }source | |
62 | ||
63 | # Fonts | |
64 | depend ${BP}/pkg/termemu/fonts.mk | |
65 | external font.di | |
66 | ||
67 | # Sunlogo | |
68 | depend ${BP}/pkg/sunlogo/logo.mk | |
69 | external sun-logo.di | |
70 | ||
71 | ||
72 | # vchannel support | |
73 | depend ${BP}/dev/sun4v-devices/vchannel/depend.mk | |
74 | target vchannel.fc sun4v-chan-dev | |
75 | source{ | |
76 | : SUNW,sun4v-channel-devices ( -- ) " sun4v-chan-dev" load-driver ; | |
77 | }source | |
78 | ||
79 | # vNET support | |
80 | depend ${BP}/dev/sun4v-devices/vnet/depend.mk | |
81 | target vnet.fc sun4v-vnet | |
82 | source{ | |
83 | : SUNW,sun4v-network ( -- ) " sun4v-vnet" load-driver ; | |
84 | }source | |
85 | ||
86 | # vDisk support | |
87 | depend ${BP}/dev/sun4v-devices/vdisk/depend.mk | |
88 | target vdisk.fc sun4v-vdisk | |
89 | source{ | |
90 | : SUNW,sun4v-disk ( -- ) " sun4v-vdisk" load-driver ; | |
91 | }source | |
92 | ||
93 | # Virtual console | |
94 | depend ${BP}/dev/sun4v-devices/console/depend.mk | |
95 | target console.fc sun4v-console | |
96 | source{ | |
97 | : SUNW,sun4v-console ( -- ) " sun4v-console" load-driver ; | |
98 | }source | |
99 | ||
100 | # Network boot support package | |
101 | depend ${BP}/pkg/dhcp/obptftp.mk | |
102 | external obptftp.di | |
103 | ||
104 | # hypervisor TOD | |
105 | depend ${BP}/dev/sun4v-devices/tod/depend.mk | |
106 | target tod.fc sun4v-tod | |
107 | source{ | |
108 | : SUNW,sun4v-tod ( -- ) " sun4v-tod" load-driver ; | |
109 | }source | |
110 | ||
111 | # virtual flashprom | |
112 | # WARNING - BINDING ON A "name" PROPERTY | |
113 | depend ${BP}/dev/sun4v-devices/flashprom/depend.mk | |
114 | target flashprom.fc sun4v-flashprom | |
115 | source{ | |
116 | : flashprom ( -- ) " sun4v-flashprom" load-driver ; | |
117 | }source | |
118 | ||
119 | # legion disk | |
120 | depend ${BP}/dev/sun4v-devices/legion-disk/depend.mk | |
121 | target sim-disk.fc legion-disk | |
122 | source{ | |
123 | : SUNW,legion-disk ( -- ) " legion-disk" load-driver ; | |
124 | alias disk SUNW,legion-disk | |
125 | }source | |
126 | ||
127 | # t1-fpga snet | |
128 | depend ${BP}/dev/sun4v-devices/t1-fpga-snet/depend.mk | |
129 | target t1-fpga-snet.fc t1-fpga-snet | |
130 | source{ | |
131 | : SUNW,t1-fpga-snet ( -- ) " t1-fpga-snet" load-driver ; | |
132 | alias snet SUNW,t1-fpga-snet | |
133 | }source | |
134 | ||
135 | # finish the dropins | |
136 | source{ | |
137 | device-end | |
138 | caps on | |
139 | }source |