File tree Expand file tree Collapse file tree 7 files changed +27
-26
lines changed Expand file tree Collapse file tree 7 files changed +27
-26
lines changed Original file line number Diff line number Diff line change @@ -229,5 +229,5 @@ int ccw_device_siosl(struct ccw_device *);
229
229
230
230
extern void ccw_device_get_schid (struct ccw_device * , struct subchannel_id * );
231
231
232
- extern void * ccw_device_get_chp_desc (struct ccw_device * , int );
232
+ struct channel_path_desc * ccw_device_get_chp_desc (struct ccw_device * , int );
233
233
#endif /* _S390_CCWDEV_H_ */
Original file line number Diff line number Diff line change 8
8
#include <uapi/asm/chpid.h>
9
9
#include <asm/cio.h>
10
10
11
+ struct channel_path_desc {
12
+ u8 flags ;
13
+ u8 lsn ;
14
+ u8 desc ;
15
+ u8 chpid ;
16
+ u8 swla ;
17
+ u8 zeroes ;
18
+ u8 chla ;
19
+ u8 chpp ;
20
+ } __packed ;
21
+
11
22
static inline void chp_id_init (struct chp_id * chpid )
12
23
{
13
24
memset (chpid , 0 , sizeof (struct chp_id ));
Original file line number Diff line number Diff line change @@ -509,7 +509,7 @@ int chp_new(struct chp_id chpid)
509
509
* On success return a newly allocated copy of the channel-path description
510
510
* data associated with the given channel-path ID. Return %NULL on error.
511
511
*/
512
- void * chp_get_chp_desc (struct chp_id chpid )
512
+ struct channel_path_desc * chp_get_chp_desc (struct chp_id chpid )
513
513
{
514
514
struct channel_path * chp ;
515
515
struct channel_path_desc * desc ;
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ static inline struct channel_path *chpid_to_chp(struct chp_id chpid)
60
60
int chp_get_status (struct chp_id chpid );
61
61
u8 chp_get_sch_opm (struct subchannel * sch );
62
62
int chp_is_registered (struct chp_id chpid );
63
- void * chp_get_chp_desc (struct chp_id chpid );
63
+ struct channel_path_desc * chp_get_chp_desc (struct chp_id chpid );
64
64
void chp_remove_cmg_attr (struct channel_path * chp );
65
65
int chp_add_cmg_attr (struct channel_path * chp );
66
66
int chp_update_desc (struct channel_path * chp );
Original file line number Diff line number Diff line change @@ -21,17 +21,6 @@ struct cmg_entry {
21
21
u32 values [NR_MEASUREMENT_ENTRIES ];
22
22
} __attribute__ ((packed ));
23
23
24
- struct channel_path_desc {
25
- u8 flags ;
26
- u8 lsn ;
27
- u8 desc ;
28
- u8 chpid ;
29
- u8 swla ;
30
- u8 zeroes ;
31
- u8 chla ;
32
- u8 chpp ;
33
- } __attribute__ ((packed ));
34
-
35
24
struct channel_path_desc_fmt1 {
36
25
u8 flags ;
37
26
u8 lsn ;
Original file line number Diff line number Diff line change @@ -563,14 +563,23 @@ int ccw_device_stlck(struct ccw_device *cdev)
563
563
return rc ;
564
564
}
565
565
566
- void * ccw_device_get_chp_desc (struct ccw_device * cdev , int chp_no )
566
+ /**
567
+ * chp_get_chp_desc - return newly allocated channel-path descriptor
568
+ * @cdev: device to obtain the descriptor for
569
+ * @chp_idx: index of the channel path
570
+ *
571
+ * On success return a newly allocated copy of the channel-path description
572
+ * data associated with the given channel path. Return %NULL on error.
573
+ */
574
+ struct channel_path_desc * ccw_device_get_chp_desc (struct ccw_device * cdev ,
575
+ int chp_idx )
567
576
{
568
577
struct subchannel * sch ;
569
578
struct chp_id chpid ;
570
579
571
580
sch = to_subchannel (cdev -> dev .parent );
572
581
chp_id_init (& chpid );
573
- chpid .id = sch -> schib .pmcw .chpid [chp_no ];
582
+ chpid .id = sch -> schib .pmcw .chpid [chp_idx ];
574
583
return chp_get_chp_desc (chpid );
575
584
}
576
585
Original file line number Diff line number Diff line change 22
22
#include <net/iucv/af_iucv.h>
23
23
24
24
#include <asm/ebcdic.h>
25
+ #include <asm/chpid.h>
25
26
#include <asm/io.h>
26
27
#include <asm/sysinfo.h>
27
28
#include <asm/compat.h>
@@ -1344,16 +1345,7 @@ static void qeth_set_multiple_write_queues(struct qeth_card *card)
1344
1345
static void qeth_update_from_chp_desc (struct qeth_card * card )
1345
1346
{
1346
1347
struct ccw_device * ccwdev ;
1347
- struct channelPath_dsc {
1348
- u8 flags ;
1349
- u8 lsn ;
1350
- u8 desc ;
1351
- u8 chpid ;
1352
- u8 swla ;
1353
- u8 zeroes ;
1354
- u8 chla ;
1355
- u8 chpp ;
1356
- } * chp_dsc ;
1348
+ struct channel_path_desc * chp_dsc ;
1357
1349
1358
1350
QETH_DBF_TEXT (SETUP , 2 , "chp_desc" );
1359
1351
You can’t perform that action at this time.
0 commit comments