Mercurial > hvf > hvf-old
changeset 531:055987394405
cp: move the definition of the senseid struct into generic channel code
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Tue, 26 Apr 2011 09:35:33 -0400 |
parents | 94dc1afb9214 |
children | c9988df57ecf |
files | cp/drivers/device.c cp/include/channel.h |
diffstat | 2 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/cp/drivers/device.c Tue Apr 26 09:31:31 2011 -0400 +++ b/cp/drivers/device.c Tue Apr 26 09:35:33 2011 -0400 @@ -13,14 +13,6 @@ #include <spinlock.h> #include <sched.h> -struct senseid_struct { - u8 __reserved; - u16 cu_type; - u8 cu_model; - u16 dev_type; - u8 dev_model; -} __attribute__((packed)); - struct static_device { u16 dev_num; struct senseid_struct sense;
--- a/cp/include/channel.h Tue Apr 26 09:31:31 2011 -0400 +++ b/cp/include/channel.h Tue Apr 26 09:35:33 2011 -0400 @@ -229,6 +229,14 @@ u32 model_dep_area; } __attribute__((packed,aligned(4))); +struct senseid_struct { + u8 __reserved; + u16 cu_type; + u8 cu_model; + u16 dev_type; + u8 dev_model; +} __attribute__((packed)); + static inline int store_sch(u32 sch, struct schib *schib) { int cc;