-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 207171 b: refs/heads/master c: 9f9c038 h: refs/heads/master i: 207169: ec8595a 207167: 627dc00 v: v3
- Loading branch information
Chris Metcalf
committed
Jul 6, 2010
1 parent
ec1de78
commit cbc976f
Showing
8 changed files
with
875 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: fb702b942bf638baa6cbbbda9f76794db62921ef | ||
refs/heads/master: 9f9c0382cda2334b35b40b00f4ed9d6f89f37a7b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Copyright 2010 Tilera Corporation. All Rights Reserved. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation, version 2. | ||
* | ||
* This program is distributed in the hope that it will be useful, but | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or | ||
* NON INFRINGEMENT. See the GNU General Public License for | ||
* more details. | ||
* | ||
* Provide methods for the HARDWALL_FILE for accessing the UDN. | ||
*/ | ||
|
||
#ifndef _ASM_TILE_HARDWALL_H | ||
#define _ASM_TILE_HARDWALL_H | ||
|
||
#include <linux/ioctl.h> | ||
|
||
#define HARDWALL_IOCTL_BASE 0xa2 | ||
|
||
/* | ||
* The HARDWALL_CREATE() ioctl is a macro with a "size" argument. | ||
* The resulting ioctl value is passed to the kernel in conjunction | ||
* with a pointer to a little-endian bitmask of cpus, which must be | ||
* physically in a rectangular configuration on the chip. | ||
* The "size" is the number of bytes of cpu mask data. | ||
*/ | ||
#define _HARDWALL_CREATE 1 | ||
#define HARDWALL_CREATE(size) \ | ||
_IOC(_IOC_READ, HARDWALL_IOCTL_BASE, _HARDWALL_CREATE, (size)) | ||
|
||
#define _HARDWALL_ACTIVATE 2 | ||
#define HARDWALL_ACTIVATE \ | ||
_IO(HARDWALL_IOCTL_BASE, _HARDWALL_ACTIVATE) | ||
|
||
#define _HARDWALL_DEACTIVATE 3 | ||
#define HARDWALL_DEACTIVATE \ | ||
_IO(HARDWALL_IOCTL_BASE, _HARDWALL_DEACTIVATE) | ||
|
||
#ifndef __KERNEL__ | ||
|
||
/* This is the canonical name expected by userspace. */ | ||
#define HARDWALL_FILE "/dev/hardwall" | ||
|
||
#else | ||
|
||
/* Hook for /proc/tile/hardwall. */ | ||
struct seq_file; | ||
int proc_tile_hardwall_show(struct seq_file *sf, void *v); | ||
|
||
#endif | ||
|
||
#endif /* _ASM_TILE_HARDWALL_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.