Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
016a8f32
Commit
016a8f32
authored
Feb 08, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PCI: remove stupid MSI debugging code that was never used.
parent
c88c3d97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
27 deletions
+3
-27
drivers/pci/msi.c
drivers/pci/msi.c
+0
-1
include/linux/pci_msi.h
include/linux/pci_msi.h
+3
-26
No files found.
drivers/pci/msi.c
View file @
016a8f32
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
#include <linux/pci_msi.h>
#include <linux/pci_msi.h>
_DEFINE_DBG_BUFFER
static
spinlock_t
msi_lock
=
SPIN_LOCK_UNLOCKED
;
static
spinlock_t
msi_lock
=
SPIN_LOCK_UNLOCKED
;
static
struct
msi_desc
*
msi_desc
[
NR_IRQS
]
=
{
[
0
...
NR_IRQS
-
1
]
=
NULL
};
static
struct
msi_desc
*
msi_desc
[
NR_IRQS
]
=
{
[
0
...
NR_IRQS
-
1
]
=
NULL
};
...
...
include/linux/pci_msi.h
View file @
016a8f32
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
*
*
*/
*/
#ifndef
_ASM_
PCI_MSI_H
#ifndef PCI_MSI_H
#define
_ASM_
PCI_MSI_H
#define PCI_MSI_H
#include <linux/pci.h>
#include <linux/pci.h>
...
@@ -82,29 +82,6 @@ extern void restore_ioapic_irq_handler(int irq);
...
@@ -82,29 +82,6 @@ extern void restore_ioapic_irq_handler(int irq);
#define msix_mask(address) (address | PCI_MSIX_FLAGS_BITMASK)
#define msix_mask(address) (address | PCI_MSIX_FLAGS_BITMASK)
#define msix_is_pending(address) (address & PCI_MSIX_FLAGS_PENDMASK)
#define msix_is_pending(address) (address & PCI_MSIX_FLAGS_PENDMASK)
extern
char
__dbg_str_buf
[
256
];
#define _DEFINE_DBG_BUFFER char __dbg_str_buf[256];
#define _DBG_K_TRACE_ENTRY ((unsigned int)0x00000001)
#define _DBG_K_TRACE_EXIT ((unsigned int)0x00000002)
#define _DBG_K_INFO ((unsigned int)0x00000004)
#define _DBG_K_ERROR ((unsigned int)0x00000008)
#define _DBG_K_TRACE (_DBG_K_TRACE_ENTRY | _DBG_K_TRACE_EXIT)
#define _DEBUG_LEVEL (_DBG_K_INFO | _DBG_K_ERROR | _DBG_K_TRACE)
#define _DBG_PRINT( dbg_flags, args... ) \
if ( _DEBUG_LEVEL & (dbg_flags) ) \
{ \
int len; \
len = sprintf(__dbg_str_buf, "%s:%d: %s ", \
__FILE__, __LINE__, __FUNCTION__ ); \
sprintf(__dbg_str_buf + len, args); \
printk(KERN_INFO "%s\n", __dbg_str_buf); \
}
#define MSI_FUNCTION_TRACE_ENTER \
_DBG_PRINT (_DBG_K_TRACE_ENTRY, "%s", "[Entry]");
#define MSI_FUNCTION_TRACE_EXIT \
_DBG_PRINT (_DBG_K_TRACE_EXIT, "%s", "[Entry]");
/*
/*
* MSI Defined Data Structures
* MSI Defined Data Structures
...
@@ -190,4 +167,4 @@ struct msi_desc {
...
@@ -190,4 +167,4 @@ struct msi_desc {
struct
pci_dev
*
dev
;
struct
pci_dev
*
dev
;
};
};
#endif
/*
_ASM_
PCI_MSI_H */
#endif
/* PCI_MSI_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment