Rev 4296 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4296 | Rev 4420 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | /** @addtogroup sparc64 |
29 | /** @addtogroup sparc64 |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
Line 90... | Line 90... | ||
90 | 90 | ||
91 | /** Initilize I/O on the Serengeti machine. */ |
91 | /** Initilize I/O on the Serengeti machine. */ |
92 | static void serengeti_init(void) |
92 | static void serengeti_init(void) |
93 | { |
93 | { |
94 | #ifdef CONFIG_SGCN_KBD |
94 | #ifdef CONFIG_SGCN_KBD |
- | 95 | sgcn_instance_t *sgcn_instance = sgcnin_init(); |
|
95 | indev_t *kbrdin; |
96 | if (sgcn_instance) { |
96 | kbrdin = sgcnin_init(); |
97 | srln_instance_t *srln_instance = srln_init(); |
97 | if (kbrdin) |
98 | if (srln_instance) { |
98 | srln_init(kbrdin); |
99 | indev_t *sink = stdin_wire(); |
- | 100 | indev_t *srln = srln_wire(srln_instance, sink); |
|
- | 101 | sgcnin_wire(sgcn_instance, srln); |
|
- | 102 | } |
|
- | 103 | } |
|
99 | #endif |
104 | #endif |
100 | #ifdef CONFIG_SGCN_PRN |
105 | #ifdef CONFIG_SGCN_PRN |
101 | sgcnout_init(); |
106 | sgcnout_init(); |
102 | #endif |
107 | #endif |
103 | } |
108 | } |
Line 133... | Line 138... | ||
133 | { |
138 | { |
134 | #ifdef CONFIG_FB |
139 | #ifdef CONFIG_FB |
135 | scr_redraw(); |
140 | scr_redraw(); |
136 | #endif |
141 | #endif |
137 | 142 | ||
138 | switch (kbd_type) { |
- | |
139 | #ifdef CONFIG_SGCN_KBD |
143 | #ifdef CONFIG_SGCN_KBD |
140 | case KBD_SGCN: |
- | |
141 | sgcn_grab(); |
144 | sgcn_grab(); |
142 | break; |
- | |
143 | #endif |
145 | #endif |
144 | default: |
- | |
145 | break; |
- | |
146 | } |
- | |
147 | } |
146 | } |
148 | 147 | ||
149 | /** Return console to userspace |
148 | /** Return console to userspace |
150 | * |
149 | * |
151 | */ |
150 | */ |
152 | void arch_release_console(void) |
151 | void arch_release_console(void) |
153 | { |
152 | { |
154 | switch (kbd_type) { |
- | |
155 | #ifdef CONFIG_SGCN_KBD |
153 | #ifdef CONFIG_SGCN_KBD |
156 | case KBD_SGCN: |
- | |
157 | sgcn_release(); |
154 | sgcn_release(); |
158 | break; |
- | |
159 | #endif |
155 | #endif |
160 | default: |
- | |
161 | break; |
- | |
162 | } |
- | |
163 | } |
156 | } |
164 | 157 | ||
165 | /** @} |
158 | /** @} |
166 | */ |
159 | */ |