dasd_int.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. /*
  2. * File...........: linux/drivers/s390/block/dasd_int.h
  3. * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com>
  4. * Horst Hummel <Horst.Hummel@de.ibm.com>
  5. * Martin Schwidefsky <schwidefsky@de.ibm.com>
  6. * Bugreports.to..: <Linux390@de.ibm.com>
  7. * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999,2000
  8. *
  9. */
  10. #ifndef DASD_INT_H
  11. #define DASD_INT_H
  12. #ifdef __KERNEL__
  13. /* erp debugging in dasd.c and dasd_3990_erp.c */
  14. #define ERP_DEBUG
  15. /* we keep old device allocation scheme; IOW, minors are still in 0..255 */
  16. #define DASD_PER_MAJOR (1U << (MINORBITS - DASD_PARTN_BITS))
  17. #define DASD_PARTN_MASK ((1 << DASD_PARTN_BITS) - 1)
  18. /*
  19. * States a dasd device can have:
  20. * new: the dasd_device structure is allocated.
  21. * known: the discipline for the device is identified.
  22. * basic: the device can do basic i/o.
  23. * unfmt: the device could not be analyzed (format is unknown).
  24. * ready: partition detection is done and the device is can do block io.
  25. * online: the device accepts requests from the block device queue.
  26. *
  27. * Things to do for startup state transitions:
  28. * new -> known: find discipline for the device and create devfs entries.
  29. * known -> basic: request irq line for the device.
  30. * basic -> ready: do the initial analysis, e.g. format detection,
  31. * do block device setup and detect partitions.
  32. * ready -> online: schedule the device tasklet.
  33. * Things to do for shutdown state transitions:
  34. * online -> ready: just set the new device state.
  35. * ready -> basic: flush requests from the block device layer, clear
  36. * partition information and reset format information.
  37. * basic -> known: terminate all requests and free irq.
  38. * known -> new: remove devfs entries and forget discipline.
  39. */
  40. #define DASD_STATE_NEW 0
  41. #define DASD_STATE_KNOWN 1
  42. #define DASD_STATE_BASIC 2
  43. #define DASD_STATE_UNFMT 3
  44. #define DASD_STATE_READY 4
  45. #define DASD_STATE_ONLINE 5
  46. #include <linux/module.h>
  47. #include <linux/wait.h>
  48. #include <linux/blkdev.h>
  49. #include <linux/devfs_fs_kernel.h>
  50. #include <linux/genhd.h>
  51. #include <linux/hdreg.h>
  52. #include <linux/interrupt.h>
  53. #include <asm/ccwdev.h>
  54. #include <linux/workqueue.h>
  55. #include <asm/debug.h>
  56. #include <asm/dasd.h>
  57. #include <asm/idals.h>
  58. /*
  59. * SECTION: Type definitions
  60. */
  61. struct dasd_device;
  62. typedef int (*dasd_ioctl_fn_t) (struct block_device *bdev, int no, long args);
  63. struct dasd_ioctl {
  64. struct list_head list;
  65. struct module *owner;
  66. int no;
  67. dasd_ioctl_fn_t handler;
  68. };
  69. typedef enum {
  70. dasd_era_fatal = -1, /* no chance to recover */
  71. dasd_era_none = 0, /* don't recover, everything alright */
  72. dasd_era_msg = 1, /* don't recover, just report... */
  73. dasd_era_recover = 2 /* recovery action recommended */
  74. } dasd_era_t;
  75. /* BIT DEFINITIONS FOR SENSE DATA */
  76. #define DASD_SENSE_BIT_0 0x80
  77. #define DASD_SENSE_BIT_1 0x40
  78. #define DASD_SENSE_BIT_2 0x20
  79. #define DASD_SENSE_BIT_3 0x10
  80. /*
  81. * SECTION: MACROs for klogd and s390 debug feature (dbf)
  82. */
  83. #define DBF_DEV_EVENT(d_level, d_device, d_str, d_data...) \
  84. do { \
  85. debug_sprintf_event(d_device->debug_area, \
  86. d_level, \
  87. d_str "\n", \
  88. d_data); \
  89. } while(0)
  90. #define DBF_DEV_EXC(d_level, d_device, d_str, d_data...) \
  91. do { \
  92. debug_sprintf_exception(d_device->debug_area, \
  93. d_level, \
  94. d_str "\n", \
  95. d_data); \
  96. } while(0)
  97. #define DBF_EVENT(d_level, d_str, d_data...)\
  98. do { \
  99. debug_sprintf_event(dasd_debug_area, \
  100. d_level,\
  101. d_str "\n", \
  102. d_data); \
  103. } while(0)
  104. #define DBF_EXC(d_level, d_str, d_data...)\
  105. do { \
  106. debug_sprintf_exception(dasd_debug_area, \
  107. d_level,\
  108. d_str "\n", \
  109. d_data); \
  110. } while(0)
  111. /* definition of dbf debug levels */
  112. #define DBF_EMERG 0 /* system is unusable */
  113. #define DBF_ALERT 1 /* action must be taken immediately */
  114. #define DBF_CRIT 2 /* critical conditions */
  115. #define DBF_ERR 3 /* error conditions */
  116. #define DBF_WARNING 4 /* warning conditions */
  117. #define DBF_NOTICE 5 /* normal but significant condition */
  118. #define DBF_INFO 6 /* informational */
  119. #define DBF_DEBUG 6 /* debug-level messages */
  120. /* messages to be written via klogd and dbf */
  121. #define DEV_MESSAGE(d_loglevel,d_device,d_string,d_args...)\
  122. do { \
  123. printk(d_loglevel PRINTK_HEADER " %s: " d_string "\n", \
  124. d_device->cdev->dev.bus_id, d_args); \
  125. DBF_DEV_EVENT(DBF_ALERT, d_device, d_string, d_args); \
  126. } while(0)
  127. #define MESSAGE(d_loglevel,d_string,d_args...)\
  128. do { \
  129. printk(d_loglevel PRINTK_HEADER " " d_string "\n", d_args); \
  130. DBF_EVENT(DBF_ALERT, d_string, d_args); \
  131. } while(0)
  132. /* messages to be written via klogd only */
  133. #define DEV_MESSAGE_LOG(d_loglevel,d_device,d_string,d_args...)\
  134. do { \
  135. printk(d_loglevel PRINTK_HEADER " %s: " d_string "\n", \
  136. d_device->cdev->dev.bus_id, d_args); \
  137. } while(0)
  138. #define MESSAGE_LOG(d_loglevel,d_string,d_args...)\
  139. do { \
  140. printk(d_loglevel PRINTK_HEADER " " d_string "\n", d_args); \
  141. } while(0)
  142. struct dasd_ccw_req {
  143. unsigned int magic; /* Eye catcher */
  144. struct list_head list; /* list_head for request queueing. */
  145. /* Where to execute what... */
  146. struct dasd_device *device; /* device the request is for */
  147. struct ccw1 *cpaddr; /* address of channel program */
  148. char status; /* status of this request */
  149. short retries; /* A retry counter */
  150. unsigned long flags; /* flags of this request */
  151. /* ... and how */
  152. unsigned long starttime; /* jiffies time of request start */
  153. int expires; /* expiration period in jiffies */
  154. char lpm; /* logical path mask */
  155. void *data; /* pointer to data area */
  156. /* these are important for recovering erroneous requests */
  157. struct irb irb; /* device status in case of an error */
  158. struct dasd_ccw_req *refers; /* ERP-chain queueing. */
  159. void *function; /* originating ERP action */
  160. /* these are for statistics only */
  161. unsigned long long buildclk; /* TOD-clock of request generation */
  162. unsigned long long startclk; /* TOD-clock of request start */
  163. unsigned long long stopclk; /* TOD-clock of request interrupt */
  164. unsigned long long endclk; /* TOD-clock of request termination */
  165. /* Callback that is called after reaching final status. */
  166. void (*callback)(struct dasd_ccw_req *, void *data);
  167. void *callback_data;
  168. };
  169. /*
  170. * dasd_ccw_req -> status can be:
  171. */
  172. #define DASD_CQR_FILLED 0x00 /* request is ready to be processed */
  173. #define DASD_CQR_QUEUED 0x01 /* request is queued to be processed */
  174. #define DASD_CQR_IN_IO 0x02 /* request is currently in IO */
  175. #define DASD_CQR_DONE 0x03 /* request is completed successfully */
  176. #define DASD_CQR_ERROR 0x04 /* request is completed with error */
  177. #define DASD_CQR_FAILED 0x05 /* request is finally failed */
  178. #define DASD_CQR_CLEAR 0x06 /* request is clear pending */
  179. /* per dasd_ccw_req flags */
  180. #define DASD_CQR_FLAGS_USE_ERP 0 /* use ERP for this request */
  181. #define DASD_CQR_FLAGS_FAILFAST 1 /* FAILFAST */
  182. /* Signature for error recovery functions. */
  183. typedef struct dasd_ccw_req *(*dasd_erp_fn_t) (struct dasd_ccw_req *);
  184. /*
  185. * the struct dasd_discipline is
  186. * sth like a table of virtual functions, if you think of dasd_eckd
  187. * inheriting dasd...
  188. * no, currently we are not planning to reimplement the driver in C++
  189. */
  190. struct dasd_discipline {
  191. struct module *owner;
  192. char ebcname[8]; /* a name used for tagging and printks */
  193. char name[8]; /* a name used for tagging and printks */
  194. int max_blocks; /* maximum number of blocks to be chained */
  195. struct list_head list; /* used for list of disciplines */
  196. /*
  197. * Device recognition functions. check_device is used to verify
  198. * the sense data and the information returned by read device
  199. * characteristics. It returns 0 if the discipline can be used
  200. * for the device in question.
  201. * do_analysis is used in the step from device state "basic" to
  202. * state "accept". It returns 0 if the device can be made ready,
  203. * it returns -EMEDIUMTYPE if the device can't be made ready or
  204. * -EAGAIN if do_analysis started a ccw that needs to complete
  205. * before the analysis may be repeated.
  206. */
  207. int (*check_device)(struct dasd_device *);
  208. int (*do_analysis) (struct dasd_device *);
  209. /*
  210. * Device operation functions. build_cp creates a ccw chain for
  211. * a block device request, start_io starts the request and
  212. * term_IO cancels it (e.g. in case of a timeout). format_device
  213. * returns a ccw chain to be used to format the device.
  214. */
  215. struct dasd_ccw_req *(*build_cp) (struct dasd_device *,
  216. struct request *);
  217. int (*start_IO) (struct dasd_ccw_req *);
  218. int (*term_IO) (struct dasd_ccw_req *);
  219. struct dasd_ccw_req *(*format_device) (struct dasd_device *,
  220. struct format_data_t *);
  221. int (*free_cp) (struct dasd_ccw_req *, struct request *);
  222. /*
  223. * Error recovery functions. examine_error() returns a value that
  224. * indicates what to do for an error condition. If examine_error()
  225. * returns 'dasd_era_recover' erp_action() is called to create a
  226. * special error recovery ccw. erp_postaction() is called after
  227. * an error recovery ccw has finished its execution. dump_sense
  228. * is called for every error condition to print the sense data
  229. * to the console.
  230. */
  231. dasd_era_t(*examine_error) (struct dasd_ccw_req *, struct irb *);
  232. dasd_erp_fn_t(*erp_action) (struct dasd_ccw_req *);
  233. dasd_erp_fn_t(*erp_postaction) (struct dasd_ccw_req *);
  234. void (*dump_sense) (struct dasd_device *, struct dasd_ccw_req *,
  235. struct irb *);
  236. /* i/o control functions. */
  237. int (*fill_geometry) (struct dasd_device *, struct hd_geometry *);
  238. int (*fill_info) (struct dasd_device *, struct dasd_information2_t *);
  239. int (*ioctl) (struct dasd_device *, unsigned int, void __user *);
  240. };
  241. extern struct dasd_discipline *dasd_diag_discipline_pointer;
  242. struct dasd_device {
  243. /* Block device stuff. */
  244. struct gendisk *gdp;
  245. request_queue_t *request_queue;
  246. spinlock_t request_queue_lock;
  247. struct block_device *bdev;
  248. unsigned int devindex;
  249. unsigned long blocks; /* size of volume in blocks */
  250. unsigned int bp_block; /* bytes per block */
  251. unsigned int s2b_shift; /* log2 (bp_block/512) */
  252. unsigned long flags; /* per device flags */
  253. unsigned short features; /* copy of devmap-features (read-only!) */
  254. /* Device discipline stuff. */
  255. struct dasd_discipline *discipline;
  256. struct dasd_discipline *base_discipline;
  257. char *private;
  258. /* Device state and target state. */
  259. int state, target;
  260. int stopped; /* device (ccw_device_start) was stopped */
  261. /* Open and reference count. */
  262. atomic_t ref_count;
  263. atomic_t open_count;
  264. /* ccw queue and memory for static ccw/erp buffers. */
  265. struct list_head ccw_queue;
  266. spinlock_t mem_lock;
  267. void *ccw_mem;
  268. void *erp_mem;
  269. struct list_head ccw_chunks;
  270. struct list_head erp_chunks;
  271. atomic_t tasklet_scheduled;
  272. struct tasklet_struct tasklet;
  273. struct work_struct kick_work;
  274. struct timer_list timer;
  275. debug_info_t *debug_area;
  276. struct ccw_device *cdev;
  277. #ifdef CONFIG_DASD_PROFILE
  278. struct dasd_profile_info_t profile;
  279. #endif
  280. };
  281. /* reasons why device (ccw_device_start) was stopped */
  282. #define DASD_STOPPED_NOT_ACC 1 /* not accessible */
  283. #define DASD_STOPPED_QUIESCE 2 /* Quiesced */
  284. #define DASD_STOPPED_PENDING 4 /* long busy */
  285. #define DASD_STOPPED_DC_WAIT 8 /* disconnected, wait */
  286. #define DASD_STOPPED_DC_EIO 16 /* disconnected, return -EIO */
  287. /* per device flags */
  288. #define DASD_FLAG_DSC_ERROR 2 /* return -EIO when disconnected */
  289. #define DASD_FLAG_OFFLINE 3 /* device is in offline processing */
  290. void dasd_put_device_wake(struct dasd_device *);
  291. /*
  292. * Reference count inliners
  293. */
  294. static inline void
  295. dasd_get_device(struct dasd_device *device)
  296. {
  297. atomic_inc(&device->ref_count);
  298. }
  299. static inline void
  300. dasd_put_device(struct dasd_device *device)
  301. {
  302. if (atomic_dec_return(&device->ref_count) == 0)
  303. dasd_put_device_wake(device);
  304. }
  305. /*
  306. * The static memory in ccw_mem and erp_mem is managed by a sorted
  307. * list of free memory chunks.
  308. */
  309. struct dasd_mchunk
  310. {
  311. struct list_head list;
  312. unsigned long size;
  313. } __attribute__ ((aligned(8)));
  314. static inline void
  315. dasd_init_chunklist(struct list_head *chunk_list, void *mem,
  316. unsigned long size)
  317. {
  318. struct dasd_mchunk *chunk;
  319. INIT_LIST_HEAD(chunk_list);
  320. chunk = (struct dasd_mchunk *) mem;
  321. chunk->size = size - sizeof(struct dasd_mchunk);
  322. list_add(&chunk->list, chunk_list);
  323. }
  324. static inline void *
  325. dasd_alloc_chunk(struct list_head *chunk_list, unsigned long size)
  326. {
  327. struct dasd_mchunk *chunk, *tmp;
  328. size = (size + 7L) & -8L;
  329. list_for_each_entry(chunk, chunk_list, list) {
  330. if (chunk->size < size)
  331. continue;
  332. if (chunk->size > size + sizeof(struct dasd_mchunk)) {
  333. char *endaddr = (char *) (chunk + 1) + chunk->size;
  334. tmp = (struct dasd_mchunk *) (endaddr - size) - 1;
  335. tmp->size = size;
  336. chunk->size -= size + sizeof(struct dasd_mchunk);
  337. chunk = tmp;
  338. } else
  339. list_del(&chunk->list);
  340. return (void *) (chunk + 1);
  341. }
  342. return NULL;
  343. }
  344. static inline void
  345. dasd_free_chunk(struct list_head *chunk_list, void *mem)
  346. {
  347. struct dasd_mchunk *chunk, *tmp;
  348. struct list_head *p, *left;
  349. chunk = (struct dasd_mchunk *)
  350. ((char *) mem - sizeof(struct dasd_mchunk));
  351. /* Find out the left neighbour in chunk_list. */
  352. left = chunk_list;
  353. list_for_each(p, chunk_list) {
  354. if (list_entry(p, struct dasd_mchunk, list) > chunk)
  355. break;
  356. left = p;
  357. }
  358. /* Try to merge with right neighbour = next element from left. */
  359. if (left->next != chunk_list) {
  360. tmp = list_entry(left->next, struct dasd_mchunk, list);
  361. if ((char *) (chunk + 1) + chunk->size == (char *) tmp) {
  362. list_del(&tmp->list);
  363. chunk->size += tmp->size + sizeof(struct dasd_mchunk);
  364. }
  365. }
  366. /* Try to merge with left neighbour. */
  367. if (left != chunk_list) {
  368. tmp = list_entry(left, struct dasd_mchunk, list);
  369. if ((char *) (tmp + 1) + tmp->size == (char *) chunk) {
  370. tmp->size += chunk->size + sizeof(struct dasd_mchunk);
  371. return;
  372. }
  373. }
  374. __list_add(&chunk->list, left, left->next);
  375. }
  376. /*
  377. * Check if bsize is in { 512, 1024, 2048, 4096 }
  378. */
  379. static inline int
  380. dasd_check_blocksize(int bsize)
  381. {
  382. if (bsize < 512 || bsize > 4096 || (bsize & (bsize - 1)) != 0)
  383. return -EMEDIUMTYPE;
  384. return 0;
  385. }
  386. /* externals in dasd.c */
  387. #define DASD_PROFILE_ON 1
  388. #define DASD_PROFILE_OFF 0
  389. extern debug_info_t *dasd_debug_area;
  390. extern struct dasd_profile_info_t dasd_global_profile;
  391. extern unsigned int dasd_profile_level;
  392. extern struct block_device_operations dasd_device_operations;
  393. extern kmem_cache_t *dasd_page_cache;
  394. struct dasd_ccw_req *
  395. dasd_kmalloc_request(char *, int, int, struct dasd_device *);
  396. struct dasd_ccw_req *
  397. dasd_smalloc_request(char *, int, int, struct dasd_device *);
  398. void dasd_kfree_request(struct dasd_ccw_req *, struct dasd_device *);
  399. void dasd_sfree_request(struct dasd_ccw_req *, struct dasd_device *);
  400. static inline int
  401. dasd_kmalloc_set_cda(struct ccw1 *ccw, void *cda, struct dasd_device *device)
  402. {
  403. return set_normalized_cda(ccw, cda);
  404. }
  405. struct dasd_device *dasd_alloc_device(void);
  406. void dasd_free_device(struct dasd_device *);
  407. void dasd_enable_device(struct dasd_device *);
  408. void dasd_set_target_state(struct dasd_device *, int);
  409. void dasd_kick_device(struct dasd_device *);
  410. void dasd_add_request_head(struct dasd_ccw_req *);
  411. void dasd_add_request_tail(struct dasd_ccw_req *);
  412. int dasd_start_IO(struct dasd_ccw_req *);
  413. int dasd_term_IO(struct dasd_ccw_req *);
  414. void dasd_schedule_bh(struct dasd_device *);
  415. int dasd_sleep_on(struct dasd_ccw_req *);
  416. int dasd_sleep_on_immediatly(struct dasd_ccw_req *);
  417. int dasd_sleep_on_interruptible(struct dasd_ccw_req *);
  418. void dasd_set_timer(struct dasd_device *, int);
  419. void dasd_clear_timer(struct dasd_device *);
  420. int dasd_cancel_req(struct dasd_ccw_req *);
  421. int dasd_generic_probe (struct ccw_device *, struct dasd_discipline *);
  422. void dasd_generic_remove (struct ccw_device *cdev);
  423. int dasd_generic_set_online(struct ccw_device *, struct dasd_discipline *);
  424. int dasd_generic_set_offline (struct ccw_device *cdev);
  425. int dasd_generic_notify(struct ccw_device *, int);
  426. void dasd_generic_auto_online (struct ccw_driver *);
  427. /* externals in dasd_devmap.c */
  428. extern int dasd_max_devindex;
  429. extern int dasd_probeonly;
  430. extern int dasd_autodetect;
  431. int dasd_devmap_init(void);
  432. void dasd_devmap_exit(void);
  433. struct dasd_device *dasd_create_device(struct ccw_device *);
  434. void dasd_delete_device(struct dasd_device *);
  435. int dasd_get_feature(struct ccw_device *, int);
  436. int dasd_set_feature(struct ccw_device *, int, int);
  437. int dasd_add_sysfs_files(struct ccw_device *);
  438. void dasd_remove_sysfs_files(struct ccw_device *);
  439. struct dasd_device *dasd_device_from_cdev(struct ccw_device *);
  440. struct dasd_device *dasd_device_from_devindex(int);
  441. int dasd_parse(void);
  442. int dasd_busid_known(char *);
  443. /* externals in dasd_gendisk.c */
  444. int dasd_gendisk_init(void);
  445. void dasd_gendisk_exit(void);
  446. int dasd_gendisk_alloc(struct dasd_device *);
  447. void dasd_gendisk_free(struct dasd_device *);
  448. int dasd_scan_partitions(struct dasd_device *);
  449. void dasd_destroy_partitions(struct dasd_device *);
  450. /* externals in dasd_ioctl.c */
  451. int dasd_ioctl_no_register(struct module *, int, dasd_ioctl_fn_t);
  452. int dasd_ioctl_no_unregister(struct module *, int, dasd_ioctl_fn_t);
  453. int dasd_ioctl(struct inode *, struct file *, unsigned int, unsigned long);
  454. long dasd_compat_ioctl(struct file *, unsigned int, unsigned long);
  455. /* externals in dasd_proc.c */
  456. int dasd_proc_init(void);
  457. void dasd_proc_exit(void);
  458. /* externals in dasd_erp.c */
  459. struct dasd_ccw_req *dasd_default_erp_action(struct dasd_ccw_req *);
  460. struct dasd_ccw_req *dasd_default_erp_postaction(struct dasd_ccw_req *);
  461. struct dasd_ccw_req *dasd_alloc_erp_request(char *, int, int,
  462. struct dasd_device *);
  463. void dasd_free_erp_request(struct dasd_ccw_req *, struct dasd_device *);
  464. void dasd_log_sense(struct dasd_ccw_req *, struct irb *);
  465. void dasd_log_ccw(struct dasd_ccw_req *, int, __u32);
  466. /* externals in dasd_3370_erp.c */
  467. dasd_era_t dasd_3370_erp_examine(struct dasd_ccw_req *, struct irb *);
  468. /* externals in dasd_3990_erp.c */
  469. dasd_era_t dasd_3990_erp_examine(struct dasd_ccw_req *, struct irb *);
  470. struct dasd_ccw_req *dasd_3990_erp_action(struct dasd_ccw_req *);
  471. /* externals in dasd_9336_erp.c */
  472. dasd_era_t dasd_9336_erp_examine(struct dasd_ccw_req *, struct irb *);
  473. /* externals in dasd_9336_erp.c */
  474. dasd_era_t dasd_9343_erp_examine(struct dasd_ccw_req *, struct irb *);
  475. struct dasd_ccw_req *dasd_9343_erp_action(struct dasd_ccw_req *);
  476. #endif /* __KERNEL__ */
  477. #endif /* DASD_H */
  478. /*
  479. * Overrides for Emacs so that we follow Linus's tabbing style.
  480. * Emacs will notice this stuff at the end of the file and automatically
  481. * adjust the settings for this buffer only. This must remain at the end
  482. * of the file.
  483. * ---------------------------------------------------------------------------
  484. * Local variables:
  485. * c-indent-level: 4
  486. * c-brace-imaginary-offset: 0
  487. * c-brace-offset: -4
  488. * c-argdecl-indent: 4
  489. * c-label-offset: -4
  490. * c-continued-statement-offset: 4
  491. * c-continued-brace-offset: 0
  492. * indent-tabs-mode: 1
  493. * tab-width: 8
  494. * End:
  495. */