Skip to content

Commit

Permalink
Staging: vt665x: remove tpci.h file
Browse files Browse the repository at this point in the history
Convert pci register/command defs to use kernel definitions.
Remove tpci.h.

Signed-off-by: Jim Lieb <lieb@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jim Lieb authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent 3e36259 commit 1e5743c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 120 deletions.
1 change: 0 additions & 1 deletion drivers/staging/vt6655/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
#include "mib.h"
#include "srom.h"
#include "rc4.h"
#include "tpci.h"
#include "desc.h"
#include "key.h"
#include "mac.h"
Expand Down
12 changes: 6 additions & 6 deletions drivers/staging/vt6655/device_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1180,17 +1180,17 @@ static BOOL device_get_pci_info(PSDevice pDevice, struct pci_dev* pcid) {

pDevice->pcid = pcid;

pci_read_config_byte(pcid, PCI_REG_COMMAND, &b);
pci_write_config_byte(pcid, PCI_REG_COMMAND, (b|COMMAND_BUSM));
pci_read_config_byte(pcid, PCI_COMMAND, &b);
pci_write_config_byte(pcid, PCI_COMMAND, (b|PCI_COMMAND_MASTER));

#ifdef PLICE_DEBUG
//pci_read_config_word(pcid,PCI_REG_MAX_LAT,&max_lat);
//pci_read_config_word(pcid,PCI_MAX_LAT,&max_lat);
//printk("max lat is %x,SubSystemID is %x\n",max_lat,pDevice->SubSystemID);
//for (ii=0;ii<0xFF;ii++)
//pci_read_config_word(pcid,PCI_REG_MAX_LAT,&max_lat);
//pci_read_config_word(pcid,PCI_MAX_LAT,&max_lat);
//max_lat = 0x20;
//pci_write_config_word(pcid,PCI_REG_MAX_LAT,max_lat);
//pci_read_config_word(pcid,PCI_REG_MAX_LAT,&max_lat);
//pci_write_config_word(pcid,PCI_MAX_LAT,max_lat);
//pci_read_config_word(pcid,PCI_MAX_LAT,&max_lat);
//printk("max lat is %x\n",max_lat);

for (ii=0;ii<0xFF;ii++)
Expand Down
113 changes: 0 additions & 113 deletions drivers/staging/vt6655/tpci.h

This file was deleted.

0 comments on commit 1e5743c

Please sign in to comment.