diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-13 16:28:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-13 16:28:32 -0400 |
commit | 0b381a286e5d748b1fd80095d3dd52326819742f (patch) | |
tree | d72fca56123520b9c78661137f8a02b6ad26f95b /include/uapi/linux/affs_hardblocks.h | |
parent | 034b5eeb6bc783e7f60e11299154556e65699e7a (diff) | |
parent | 5921e6f8809b1616932ca4afd40fe449faa8fd88 (diff) |
Merge tag 'disintegrate-main-20121013' of git://git.infradead.org/users/dhowells/linux-headers
Pull UAPI disintegration for include/linux/{,byteorder/}*.h from David Howells:
"The patches contained herein do the following:
(1) Remove kernel-only stuff in linux/ppp-comp.h from the UAPI. I checked
this with Paul Mackerras before I created the patch and he suggested some
extra bits to unexport.
(2) Remove linux/blk_types.h entirely from the UAPI as none of it is userspace
applicable, and remove from the UAPI that part of linux/fs.h that was the
reason for linux/blk_types.h being exported in the first place. I
discussed this with Jens Axboe before creating the patch.
(3) The big patch of the series to disintegrate include/linux/*.h as a unit.
This could be split up, though there would be collisions in moving stuff
between the two Kbuild files when the parts are merged as that file is
sorted alphabetically rather than being grouped by subsystem.
Of this set of headers, 17 files have changed in the UAPI exported region
since the 4th and only 8 since the 9th so there isn't much change in this
area - as one might expect.
It should be pretty obvious and straightforward if it does come to fixing
up: stuff in __KERNEL__ guards stays where it is and stuff outside moves
to the same file in the include/uapi/linux/ directory.
If a new file appears then things get a bit more complicated as the
"headers +=" line has to move to include/uapi/linux/Kbuild. Only one new
file has appeared since the 9th and I judge this type of event relatively
unlikely.
(4) A patch to disintegrate include/linux/byteorder/*.h as a unit.
Signed-off-by: David Howells <dhowells@redhat.com>"
* tag 'disintegrate-main-20121013' of git://git.infradead.org/users/dhowells/linux-headers:
UAPI: (Scripted) Disintegrate include/linux/byteorder
UAPI: (Scripted) Disintegrate include/linux
UAPI: Unexport linux/blk_types.h
UAPI: Unexport part of linux/ppp-comp.h
Diffstat (limited to 'include/uapi/linux/affs_hardblocks.h')
-rw-r--r-- | include/uapi/linux/affs_hardblocks.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/include/uapi/linux/affs_hardblocks.h b/include/uapi/linux/affs_hardblocks.h new file mode 100644 index 000000000000..f1b948c1f592 --- /dev/null +++ b/include/uapi/linux/affs_hardblocks.h | |||
@@ -0,0 +1,68 @@ | |||
1 | #ifndef AFFS_HARDBLOCKS_H | ||
2 | #define AFFS_HARDBLOCKS_H | ||
3 | |||
4 | #include <linux/types.h> | ||
5 | |||
6 | /* Just the needed definitions for the RDB of an Amiga HD. */ | ||
7 | |||
8 | struct RigidDiskBlock { | ||
9 | __u32 rdb_ID; | ||
10 | __be32 rdb_SummedLongs; | ||
11 | __s32 rdb_ChkSum; | ||
12 | __u32 rdb_HostID; | ||
13 | __be32 rdb_BlockBytes; | ||
14 | __u32 rdb_Flags; | ||
15 | __u32 rdb_BadBlockList; | ||
16 | __be32 rdb_PartitionList; | ||
17 | __u32 rdb_FileSysHeaderList; | ||
18 | __u32 rdb_DriveInit; | ||
19 | __u32 rdb_Reserved1[6]; | ||
20 | __u32 rdb_Cylinders; | ||
21 | __u32 rdb_Sectors; | ||
22 | __u32 rdb_Heads; | ||
23 | __u32 rdb_Interleave; | ||
24 | __u32 rdb_Park; | ||
25 | __u32 rdb_Reserved2[3]; | ||
26 | __u32 rdb_WritePreComp; | ||
27 | __u32 rdb_ReducedWrite; | ||
28 | __u32 rdb_StepRate; | ||
29 | __u32 rdb_Reserved3[5]; | ||
30 | __u32 rdb_RDBBlocksLo; | ||
31 | __u32 rdb_RDBBlocksHi; | ||
32 | __u32 rdb_LoCylinder; | ||
33 | __u32 rdb_HiCylinder; | ||
34 | __u32 rdb_CylBlocks; | ||
35 | __u32 rdb_AutoParkSeconds; | ||
36 | __u32 rdb_HighRDSKBlock; | ||
37 | __u32 rdb_Reserved4; | ||
38 | char rdb_DiskVendor[8]; | ||
39 | char rdb_DiskProduct[16]; | ||
40 | char rdb_DiskRevision[4]; | ||
41 | char rdb_ControllerVendor[8]; | ||
42 | char rdb_ControllerProduct[16]; | ||
43 | char rdb_ControllerRevision[4]; | ||
44 | __u32 rdb_Reserved5[10]; | ||
45 | }; | ||
46 | |||
47 | #define IDNAME_RIGIDDISK 0x5244534B /* "RDSK" */ | ||
48 | |||
49 | struct PartitionBlock { | ||
50 | __be32 pb_ID; | ||
51 | __be32 pb_SummedLongs; | ||
52 | __s32 pb_ChkSum; | ||
53 | __u32 pb_HostID; | ||
54 | __be32 pb_Next; | ||
55 | __u32 pb_Flags; | ||
56 | __u32 pb_Reserved1[2]; | ||
57 | __u32 pb_DevFlags; | ||
58 | __u8 pb_DriveName[32]; | ||
59 | __u32 pb_Reserved2[15]; | ||
60 | __be32 pb_Environment[17]; | ||
61 | __u32 pb_EReserved[15]; | ||
62 | }; | ||
63 | |||
64 | #define IDNAME_PARTITION 0x50415254 /* "PART" */ | ||
65 | |||
66 | #define RDB_ALLOCATION_LIMIT 16 | ||
67 | |||
68 | #endif /* AFFS_HARDBLOCKS_H */ | ||