Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143231
b: refs/heads/master
c: e6da46b
h: refs/heads/master
i:
  143229: 02e0825
  143227: f8d89e4
  143223: 23badc7
  143215: 25ca25f
  143199: 2fd29d5
  143167: 33c2371
  143103: 4075168
v: v3
  • Loading branch information
Jeff Haran authored and Linus Torvalds committed Apr 13, 2009
1 parent bf16f3e commit 6f8a5fd
Show file tree
Hide file tree
Showing 2 changed files with 11 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: a7665b0a380585fbd70a2275f3120c6086e0c92d
refs/heads/master: e6da46b273443c8cebef81a68b2d0d955b8a07b4
12 changes: 10 additions & 2 deletions trunk/drivers/edac/edac_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -767,11 +767,19 @@ static inline void pci_write_bits16(struct pci_dev *pdev, int offset,
pci_write_config_word(pdev, offset, value);
}

/* write all or some bits in a dword-register*/
/*
* pci_write_bits32
*
* edac local routine to do pci_write_config_dword, but adds
* a mask parameter. If mask is all ones, ignore the mask.
* Otherwise utilize the mask to isolate specified bits
*
* write all or some bits in a dword-register
*/
static inline void pci_write_bits32(struct pci_dev *pdev, int offset,
u32 value, u32 mask)
{
if (mask != 0xffff) {
if (mask != 0xffffffff) {
u32 buf;

pci_read_config_dword(pdev, offset, &buf);
Expand Down

0 comments on commit 6f8a5fd

Please sign in to comment.