summaryrefslogtreecommitdiff
path: root/board.h
blob: 39a1762e5eb6e0170152eff432eb2d517916af11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2008-2010  Segher Boessenkool  <segher@kernel.crashing.org>
// Licensed under the terms of the GNU GPL, version 2
// http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt

#ifndef _BOARD_H
#define _BOARD_H

#include "types.h"

struct board {
	u32 idle_pc;		// Address of code that waits for (retrace) IRQ
	int use_centered_coors;	// This is some video reg actually, FIXME

	void (*init)(void);
	u16 (*gpio)(u32 n, u16 what, u16 push, u16 pull, u16 special);
	void (*uart_send)(u8 x);
	u8 (*uart_recv)(void);
};

extern struct board board_VII, board_WAL, board_BAT, board_V_X, board_dummy;
extern struct board *board;

void board_init(void);

#endif