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
62251912
Commit
62251912
authored
Sep 07, 2003
by
Jesse Barnes
Committed by
David Mosberger
Sep 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ia64: misc. sn2 updates
Fix a couple of sn2 files.
parent
2d772137
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
2 deletions
+38
-2
arch/ia64/sn/io/machvec/pci_dma.c
arch/ia64/sn/io/machvec/pci_dma.c
+1
-1
include/asm-ia64/sn/hcl.h
include/asm-ia64/sn/hcl.h
+1
-0
include/asm-ia64/sn/pci/pciio.h
include/asm-ia64/sn/pci/pciio.h
+34
-0
include/asm-ia64/sn/sn2/intr.h
include/asm-ia64/sn/sn2/intr.h
+2
-1
No files found.
arch/ia64/sn/io/machvec/pci_dma.c
View file @
62251912
...
...
@@ -597,7 +597,7 @@ sn_dma_set_mask(struct device *dev, u64 dma_mask)
if
(
!
sn_dma_supported
(
dev
,
dma_mask
))
return
0
;
dev
->
dma_mask
=
dma_mask
;
*
dev
->
dma_mask
=
dma_mask
;
return
1
;
}
EXPORT_SYMBOL
(
sn_dma_set_mask
);
...
...
include/asm-ia64/sn/hcl.h
View file @
62251912
...
...
@@ -10,6 +10,7 @@
#define _ASM_IA64_SN_HCL_H
#include <asm/sn/sgi.h>
#include <asm/sn/invent.h>
extern
vertex_hdl_t
hwgraph_root
;
extern
vertex_hdl_t
linux_busnum
;
...
...
include/asm-ia64/sn/pci/pciio.h
View file @
62251912
...
...
@@ -695,5 +695,39 @@ extern int pciio_info_type1_get(pciio_info_t);
extern
int
pciio_error_handler
(
vertex_hdl_t
,
int
,
ioerror_mode_t
,
ioerror_t
*
);
extern
int
pciio_dma_enabled
(
vertex_hdl_t
);
/**
* sn_pci_set_vchan - Set the requested Virtual Channel bits into the mapped DMA
* address.
* @pci_dev: pci device pointer
* @addr: mapped dma address
* @vchan: Virtual Channel to use 0 or 1.
*
* Set the Virtual Channel bit in the mapped dma address.
*/
static
inline
int
sn_pci_set_vchan
(
struct
pci_dev
*
pci_dev
,
dma_addr_t
*
addr
,
int
vchan
)
{
if
(
vchan
>
1
)
{
return
-
1
;
}
if
(
!
(
*
addr
>>
32
))
/* Using a mask here would be cleaner */
return
0
;
/* but this generates better code */
if
(
vchan
==
1
)
{
/* Set Bit 57 */
*
addr
|=
(
1UL
<<
57
);
}
else
{
/* Clear Bit 57 */
*
addr
&=
~
(
1UL
<<
57
);
}
return
0
;
}
#endif
/* C or C++ */
#endif
/* _ASM_SN_PCI_PCIIO_H */
include/asm-ia64/sn/sn2/intr.h
View file @
62251912
...
...
@@ -17,10 +17,11 @@
#define SGI_II_ERROR (0x31)
#define SGI_XBOW_ERROR (0x32)
#define SGI_PCIBR_ERROR (0x33)
#define SGI_ACPI_SCI_INT (0x34)
#define SGI_XPC_NOTIFY (0xe7)
#define IA64_SN2_FIRST_DEVICE_VECTOR (0x34)
#define IA64_SN2_LAST_DEVICE_VECTOR (0xe
6
)
#define IA64_SN2_LAST_DEVICE_VECTOR (0xe
7
)
#define SN2_IRQ_RESERVED (0x1)
#define SN2_IRQ_CONNECTED (0x2)
...
...
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