Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117145
b: refs/heads/master
c: bc36e65
h: refs/heads/master
i:
  117143: 6b9af25
v: v3
  • Loading branch information
J.R. Mauro authored and Greg Kroah-Hartman committed Oct 22, 2008
1 parent 9c25142 commit 9b42619
Show file tree
Hide file tree
Showing 5 changed files with 369 additions and 380 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: 2ae5a6d20eae3651eade5165ae2a30ea6c3a1812
refs/heads/master: bc36e6559c32374b7f9cf18e9461cd51998c41d3
41 changes: 17 additions & 24 deletions trunk/drivers/staging/sxg/sxg_os.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#define FALSE (0)
#define TRUE (1)


typedef struct _LIST_ENTRY {
struct _LIST_ENTRY *nle_flink;
struct _LIST_ENTRY *nle_blink;
Expand All @@ -69,35 +68,32 @@ typedef struct _LIST_ENTRY {

/* These two have to be inlined since they return things. */

static __inline PLIST_ENTRY
RemoveHeadList(list_entry *l)
static __inline PLIST_ENTRY RemoveHeadList(list_entry * l)
{
list_entry *f;
list_entry *e;
list_entry *f;
list_entry *e;

e = l->nle_flink;
f = e->nle_flink;
l->nle_flink = f;
f->nle_blink = l;
e = l->nle_flink;
f = e->nle_flink;
l->nle_flink = f;
f->nle_blink = l;

return (e);
return (e);
}

static __inline PLIST_ENTRY
RemoveTailList(list_entry *l)
static __inline PLIST_ENTRY RemoveTailList(list_entry * l)
{
list_entry *b;
list_entry *e;
list_entry *b;
list_entry *e;

e = l->nle_blink;
b = e->nle_blink;
l->nle_blink = b;
b->nle_flink = l;
e = l->nle_blink;
b = e->nle_blink;
l->nle_blink = b;
b->nle_flink = l;

return (e);
return (e);
}


#define InsertTailList(l, e) \
do { \
list_entry *b; \
Expand All @@ -120,7 +116,6 @@ RemoveTailList(list_entry *l)
(l)->nle_flink = (e); \
} while (0)


#define ATK_DEBUG 1

#if ATK_DEBUG
Expand All @@ -133,7 +128,6 @@ RemoveTailList(list_entry *l)
#define SLIC_TIMESTAMP(value)
#endif


/****************** SXG DEFINES *****************************************/

#ifdef ATKDBG
Expand All @@ -150,5 +144,4 @@ RemoveTailList(list_entry *l)
#define WRITE_REG64(a,reg,value,cpu) sxg_reg64_write((a),(&reg),(value),(cpu))
#define READ_REG(reg,value) (value) = readl((void __iomem *)(&reg))

#endif /* _SLIC_OS_SPECIFIC_H_ */

#endif /* _SLIC_OS_SPECIFIC_H_ */
Loading

0 comments on commit 9b42619

Please sign in to comment.