-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 94147 b: refs/heads/master c: ab06aaf h: refs/heads/master i: 94145: ea3d9cc 94143: 6eaed97 v: v3
- Loading branch information
Andres Salomon
authored and
Linus Torvalds
committed
Apr 28, 2008
1 parent
3b89db1
commit a3db92c
Showing
5 changed files
with
98 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: fa20c8a6e520d9ccd68c8101155ffdbc19c977c3 | ||
refs/heads/master: ab06aaf6a6d5de896e4c52e158be2881036cbee9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters