dasd_fba.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com>
  3. * Bugreports.to..: <Linux390@de.ibm.com>
  4. * Coypright IBM Corp. 1999, 2000
  5. *
  6. */
  7. #ifndef DASD_FBA_H
  8. #define DASD_FBA_H
  9. struct DE_fba_data {
  10. struct {
  11. unsigned char perm:2; /* Permissions on this extent */
  12. unsigned char zero:2; /* Must be zero */
  13. unsigned char da:1; /* usually zero */
  14. unsigned char diag:1; /* allow diagnose */
  15. unsigned char zero2:2; /* zero */
  16. } __attribute__ ((packed)) mask;
  17. __u8 zero; /* Must be zero */
  18. __u16 blk_size; /* Blocksize */
  19. __u32 ext_loc; /* Extent locator */
  20. __u32 ext_beg; /* logical number of block 0 in extent */
  21. __u32 ext_end; /* logocal number of last block in extent */
  22. } __attribute__ ((packed));
  23. struct LO_fba_data {
  24. struct {
  25. unsigned char zero:4;
  26. unsigned char cmd:4;
  27. } __attribute__ ((packed)) operation;
  28. __u8 auxiliary;
  29. __u16 blk_ct;
  30. __u32 blk_nr;
  31. } __attribute__ ((packed));
  32. struct dasd_fba_characteristics {
  33. union {
  34. __u8 c;
  35. struct {
  36. unsigned char reserved:1;
  37. unsigned char overrunnable:1;
  38. unsigned char burst_byte:1;
  39. unsigned char data_chain:1;
  40. unsigned char zeros:4;
  41. } __attribute__ ((packed)) bits;
  42. } __attribute__ ((packed)) mode;
  43. union {
  44. __u8 c;
  45. struct {
  46. unsigned char zero0:1;
  47. unsigned char removable:1;
  48. unsigned char shared:1;
  49. unsigned char zero1:1;
  50. unsigned char mam:1;
  51. unsigned char zeros:3;
  52. } __attribute__ ((packed)) bits;
  53. } __attribute__ ((packed)) features;
  54. __u8 dev_class;
  55. __u8 unit_type;
  56. __u16 blk_size;
  57. __u32 blk_per_cycl;
  58. __u32 blk_per_bound;
  59. __u32 blk_bdsa;
  60. __u32 reserved0;
  61. __u16 reserved1;
  62. __u16 blk_ce;
  63. __u32 reserved2;
  64. __u16 reserved3;
  65. } __attribute__ ((packed));
  66. #endif /* DASD_FBA_H */