📄 rf_camlayer.h
字号:
/* * rf_camlayer.h *//* * Copyright (c) 1996 Carnegie-Mellon University. * All rights reserved. * * Author: Jim Zelenka * * Permission to use, copy, modify and distribute this software and * its documentation is hereby granted, provided that both the copyright * notice and this permission notice appear in all copies of the * software, derivative works or modified versions, and any portions * thereof, and that both notices appear in supporting documentation. * * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. * * Carnegie Mellon requests users of this software to return to * * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU * School of Computer Science * Carnegie Mellon University * Pittsburgh PA 15213-3890 * * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. *//* * $Locker: $ * $Log: rf_camlayer.h,v $ * Revision 1.9 1996/08/16 17:51:22 jimz * begin AIX additions * * Revision 1.8 1996/07/19 16:12:36 jimz * add devname arg to DoReadCapacity * * Revision 1.7 1996/07/18 22:57:14 jimz * port simulator to AIX * * Revision 1.6 1996/06/10 11:55:47 jimz * Straightened out some per-array/not-per-array distinctions, fixed * a couple bugs related to confusion. Added shutdown lists. Removed * layout shutdown function (now subsumed by shutdown lists). * * Revision 1.5 1996/06/07 21:33:04 jimz * begin using consistent types for sector numbers, * stripe numbers, row+col numbers, recon unit numbers * * Revision 1.4 1996/06/03 23:28:26 jimz * more bugfixes * check in tree to sync for IPDS runs with current bugfixes * there still may be a problem with threads in the script test * getting I/Os stuck- not trivially reproducible (runs ~50 times * in a row without getting stuck) * * Revision 1.3 1996/05/30 11:29:41 jimz * Numerous bug fixes. Stripe lock release code disagreed with the taking code * about when stripes should be locked (I made it consistent: no parity, no lock) * There was a lot of extra serialization of I/Os which I've removed- a lot of * it was to calculate values for the cache code, which is no longer with us. * More types, function, macro cleanup. Added code to properly quiesce the array * on shutdown. Made a lot of stuff array-specific which was (bogusly) general * before. Fixed memory allocation, freeing bugs. * * Revision 1.2 1996/05/23 21:46:35 jimz * checkpoint in code cleanup (release prep) * lots of types, function names have been fixed * * Revision 1.1 1996/05/18 19:54:47 jimz * Initial revision * */#ifndef _RF__RF_CAMLAYER_H_#define _RF__RF_CAMLAYER_H_#include "rf_types.h"#if defined(__osf__) || defined(AIX)int rf_ConfigureCamLayer(RF_ShutdownList_t **listp);#endif /* __osf__ || AIX */#ifdef __osf__void *rf_CreateCamIOHandle(void);void rf_DestroyCamIOHandle(void *h);int rf_extract_ids(char *name, int *bus_id, int *targ_id, int *lun);int rf_SCSI_AllocReadCapacity(RF_DiskOp_t **ua_ccb_out);int rf_SCSI_AllocTUR(RF_DiskOp_t **ua_ccb_out);int rf_SCSI_FreeDiskOp(RF_DiskOp_t *op, int free_the_buf);int rf_SCSI_DoTUR(RF_DiskOp_t *op, u_char bus_id, u_char targ_id, u_char lun, dev_t dev);int rf_SCSI_DoReadCapacity(RF_DiskOp_t *op, u_char bus_id, u_char targ_id, u_char lun, dev_t dev, RF_SectorCount_t *numBlk, int *blkSize, char *devname);int rf_SCSI_OpenUnit(dev_t dev);#ifndef KERNELvoid rf_SCSI_setup_rw_handle(RF_IoType_t type, void *handle, int bus, int target, int lun);int rf_SCSI_do_write(int blockshift, void *handle, RF_SectorNum_t sectoffset, int numsect, char *buf);int rf_SCSI_do_read(int blockshift, void *handle, RF_SectorNum_t sectoffset, int numsect, char *buf);#endif /* !KERNEL */#define RF_CAM_SENSEDATALEN 160#endif /* __osf__ */#endif /* !_RF__RF_CAMLAYER_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -