[S390] cio: Use ccw_dev_id and subchannel_id in ccw_device_private

Use the proper structures to identify device and subchannel. Change
get_disc_ccwdev_by_devno() to get_disc_ccwdev_by_dev_id().

Signed-off-by: Cornelia Huck <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
This commit is contained in:
Cornelia Huck 2006-10-11 15:31:38 +02:00 • committed by Martin Schwidefsky
commit 7896426805
9 changed files with 62 additions and 53 deletions

View file

@ -275,6 +275,12 @@ struct ccw_dev_id {
u16 devno;
};
static inline int ccw_dev_id_is_equal(struct ccw_dev_id *dev_id1,
struct ccw_dev_id *dev_id2)
{
return !memcmp(dev_id1, dev_id2, sizeof(struct ccw_dev_id));
}
extern int diag210(struct diag210 *addr);
extern void wait_cons_dev(void);