dasd_fba.h 1.8 KB

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