Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17654
b: refs/heads/master
c: 3f08ff4
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Jan 10, 2006
1 parent 77d89cb commit 2bfd7d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d911233fe6632981086942a6b66e7ae5dabaaadc
refs/heads/master: 3f08ff4a4dab1ebef06d154050fb80ce2c13fc9c
5 changes: 3 additions & 2 deletions trunk/include/video/newport.h
Original file line number Diff line number Diff line change
Expand Up @@ -382,15 +382,16 @@ typedef struct {
#define VC2_IREG_CONTROL 0x10
#define VC2_IREG_CONFIG 0x20

extern __inline__ void newport_vc2_set(struct newport_regs *regs, unsigned char vc2ireg,
static inline void newport_vc2_set(struct newport_regs *regs,
unsigned char vc2ireg,
unsigned short val)
{
regs->set.dcbmode = (NPORT_DMODE_AVC2 | VC2_REGADDR_INDEX | NPORT_DMODE_W3 |
NPORT_DMODE_ECINC | VC2_PROTOCOL);
regs->set.dcbdata0.byword = (vc2ireg << 24) | (val << 8);
}

extern __inline__ unsigned short newport_vc2_get(struct newport_regs *regs,
static inline unsigned short newport_vc2_get(struct newport_regs *regs,
unsigned char vc2ireg)
{
regs->set.dcbmode = (NPORT_DMODE_AVC2 | VC2_REGADDR_INDEX | NPORT_DMODE_W1 |
Expand Down

0 comments on commit 2bfd7d9

Please sign in to comment.