[TG3]: Set minimal hw interrupt mitigation.
[linux-2.6/verdex.git] / arch / sh64 / kernel / alphanum.c
blob56d6f9f715243c3a3bb0c66374cd5b38666dbf00
1 /*
2 * arch/sh64/kernel/alpanum.c
4 * Copyright (C) 2002 Stuart Menefy <stuart.menefy@st.com>
6 * May be copied or modified under the terms of the GNU General Public
7 * License. See linux/COPYING for more information.
9 * Machine-independent functions for handling 8-digit alphanumeric display
10 * (e.g. Agilent HDSP-253x)
12 #include <linux/config.h>
13 #include <linux/stddef.h>
14 #include <linux/sched.h>
16 void mach_alphanum(int pos, unsigned char val);
17 void mach_led(int pos, int val);
19 void print_seg(char *file, int line)
21 int i;
22 unsigned int nibble;
24 for (i = 0; i < 5; i++) {
25 mach_alphanum(i, file[i]);
28 for (i = 0; i < 3; i++) {
29 nibble = ((line >> (i * 4)) & 0xf);
30 mach_alphanum(7 - i, nibble + ((nibble > 9) ? 55 : 48));
34 void print_seg_num(unsigned num)
36 int i;
37 unsigned int nibble;
39 for (i = 0; i < 8; i++) {
40 nibble = ((num >> (i * 4)) & 0xf);
42 mach_alphanum(7 - i, nibble + ((nibble > 9) ? 55 : 48));