aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/geode/gxfb.h
blob: 42fa10db619a86789680d2e29c4692646a923b21 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * Copyright (C) 2008 Andres Salomon <dilinger@debian.org>
 *
 * Geode GX2 register tables
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */
#ifndef _GXFB_H_
#define _GXFB_H_

#include <linux/io.h>

static inline uint32_t read_dc(struct geodefb_par *par, int reg)
{
	return readl(par->dc_regs + reg);
}

static inline void write_dc(struct geodefb_par *par, int reg, uint32_t val)
{
	writel(val, par->dc_regs + reg);

}

static inline uint32_t read_vp(struct geodefb_par *par, int reg)
{
	return readl(par->vid_regs + reg);
}

static inline void write_vp(struct geodefb_par *par, int reg, uint32_t val)
{
	writel(val, par->vid_regs + reg);
}

static inline uint32_t read_fp(struct geodefb_par *par, int reg)
{
	return readl(par->vid_regs + reg);
}

static inline void write_fp(struct geodefb_par *par, int reg, uint32_t val)
{
	writel(val, par->vid_regs + reg);
}

#endif