2 * Copyright (C) 2008 Andres Salomon <dilinger@debian.org>
4 * Geode GX2 register tables
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
16 static inline uint32_t read_dc(struct geodefb_par *par, int reg)
18 return readl(par->dc_regs + reg);
21 static inline void write_dc(struct geodefb_par *par, int reg, uint32_t val)
23 writel(val, par->dc_regs + reg);
27 static inline uint32_t read_vp(struct geodefb_par *par, int reg)
29 return readl(par->vid_regs + reg);
32 static inline void write_vp(struct geodefb_par *par, int reg, uint32_t val)
34 writel(val, par->vid_regs + reg);
37 static inline uint32_t read_fp(struct geodefb_par *par, int reg)
39 return readl(par->vid_regs + reg);
42 static inline void write_fp(struct geodefb_par *par, int reg, uint32_t val)
44 writel(val, par->vid_regs + reg);