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
845c28d8
Commit
845c28d8
authored
Jul 29, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
into nuts.davemloft.net:/disk1/BK/sparc-2.6
parents
99202312
91096a17
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
Documentation/DMA-mapping.txt
Documentation/DMA-mapping.txt
+2
-2
include/asm-sparc/openpromio.h
include/asm-sparc/openpromio.h
+3
-2
include/asm-sparc64/openpromio.h
include/asm-sparc64/openpromio.h
+1
-0
No files found.
Documentation/DMA-mapping.txt
View file @
845c28d8
...
...
@@ -222,14 +222,14 @@ Here is pseudo-code showing how this might be done:
struct pci_dev *pdev;
...
if (pci_set_dma_mask(pdev, PLAYBACK_ADDRESS_BITS)) {
if (
!
pci_set_dma_mask(pdev, PLAYBACK_ADDRESS_BITS)) {
card->playback_enabled = 1;
} else {
card->playback_enabled = 0;
printk(KERN_WARN "%s: Playback disabled due to DMA limitations.\n",
card->name);
}
if (pci_set_dma_mask(pdev, RECORD_ADDRESS_BITS)) {
if (
!
pci_set_dma_mask(pdev, RECORD_ADDRESS_BITS)) {
card->record_enabled = 1;
} else {
card->record_enabled = 0;
...
...
include/asm-sparc/openpromio.h
View file @
845c28d8
#ifndef _SPARC_OPENPROMIO_H
#define _SPARC_OPENPROMIO_H
#include <linux/compiler.h>
#include <linux/ioctl.h>
#include <linux/types.h>
...
...
@@ -52,9 +53,9 @@ struct opiocdesc
{
int
op_nodeid
;
/* PROM Node ID (value-result) */
int
op_namelen
;
/* Length of op_name. */
char
*
op_name
;
/* Pointer to the property name. */
char
__user
*
op_name
;
/* Pointer to the property name. */
int
op_buflen
;
/* Length of op_buf (value-result) */
char
*
op_buf
;
/* Pointer to buffer. */
char
__user
*
op_buf
;
/* Pointer to buffer. */
};
#define OPIOCGET _IOWR('O', 1, struct opiocdesc)
...
...
include/asm-sparc64/openpromio.h
View file @
845c28d8
#ifndef _SPARC64_OPENPROMIO_H
#define _SPARC64_OPENPROMIO_H
#include <linux/compiler.h>
#include <linux/ioctl.h>
#include <linux/types.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