mpt_raid.h (148679) | mpt_raid.h (158934) |
---|---|
1/* $FreeBSD: head/sys/dev/mpt/mpt_raid.h 148679 2005-08-03 14:08:41Z gibbs $ */ | 1/* $FreeBSD: head/sys/dev/mpt/mpt_raid.h 158934 2006-05-26 05:43:14Z mjacob $ */ |
2/*- 3 * Definitions for the integrated RAID features LSI MPT Fusion adapters. 4 * 5 * Copyright (c) 2005, WHEEL Sp. z o.o. 6 * Copyright (c) 2004, 2005 Justin T. Gibbs 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without --- 30 unchanged lines hidden (view full) --- 40 41typedef enum { 42 MPT_RAID_MWCE_ON, 43 MPT_RAID_MWCE_OFF, 44 MPT_RAID_MWCE_REBUILD_ONLY, 45 MPT_RAID_MWCE_NC 46} mpt_raid_mwce_t; 47 | 2/*- 3 * Definitions for the integrated RAID features LSI MPT Fusion adapters. 4 * 5 * Copyright (c) 2005, WHEEL Sp. z o.o. 6 * Copyright (c) 2004, 2005 Justin T. Gibbs 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without --- 30 unchanged lines hidden (view full) --- 40 41typedef enum { 42 MPT_RAID_MWCE_ON, 43 MPT_RAID_MWCE_OFF, 44 MPT_RAID_MWCE_REBUILD_ONLY, 45 MPT_RAID_MWCE_NC 46} mpt_raid_mwce_t; 47 |
48const char * 49 mpt_vol_type(struct mpt_raid_volume *); 50const char * 51 mpt_vol_state(struct mpt_raid_volume *); 52const char * 53 mpt_disk_state(struct mpt_raid_disk *); 54void mpt_vol_prt(struct mpt_softc *, struct mpt_raid_volume *, 55 const char *fmt, ...); 56void mpt_disk_prt(struct mpt_softc *mpt, struct mpt_raid_disk *disk, 57 const char *fmt, ...); | 48const char *mpt_vol_type(struct mpt_raid_volume *); 49const char *mpt_vol_state(struct mpt_raid_volume *); 50const char *mpt_disk_state(struct mpt_raid_disk *); 51void 52mpt_vol_prt(struct mpt_softc *, struct mpt_raid_volume *, const char *fmt, ...); 53void 54mpt_disk_prt(struct mpt_softc *, struct mpt_raid_disk *, const char *, ...); |
58 | 55 |
59int mpt_issue_raid_req(struct mpt_softc *mpt, struct mpt_raid_volume *vol, 60 struct mpt_raid_disk *disk, request_t *req, 61 u_int Action, uint32_t ActionDataWord, 62 bus_addr_t addr, bus_size_t len, int write, 63 int wait); | 56int 57mpt_issue_raid_req(struct mpt_softc *, struct mpt_raid_volume *, 58 struct mpt_raid_disk *, request_t *, u_int, uint32_t, bus_addr_t, 59 bus_size_t, int, int); 60 |
64cam_status | 61cam_status |
65 mpt_map_physdisk(struct mpt_softc *mpt, union ccb *, u_int *tgt); | 62mpt_map_physdisk(struct mpt_softc *, union ccb *, u_int *); |
66cam_status | 63cam_status |
67 mpt_raid_quiesce_disk(struct mpt_softc *mpt, 68 struct mpt_raid_disk *mpt_disk, 69 request_t *req); 70void mpt_refresh_raid_data(struct mpt_softc *); 71void mpt_schedule_raid_refresh(struct mpt_softc *mpt); | 64mpt_raid_quiesce_disk(struct mpt_softc *, struct mpt_raid_disk *, request_t *); |
72 | 65 |
66int mpt_refresh_raid_data(struct mpt_softc *); 67void mpt_schedule_raid_refresh(struct mpt_softc *); 68 |
|
73static __inline void 74mpt_raid_wakeup(struct mpt_softc *mpt) 75{ 76 mpt->raid_wakeup++; 77 wakeup(&mpt->raid_volumes); 78} 79 80#define MPT_RAID_SYNC_REPORT_INTERVAL (15 * 60 * hz) --- 15 unchanged lines hidden --- | 69static __inline void 70mpt_raid_wakeup(struct mpt_softc *mpt) 71{ 72 mpt->raid_wakeup++; 73 wakeup(&mpt->raid_volumes); 74} 75 76#define MPT_RAID_SYNC_REPORT_INTERVAL (15 * 60 * hz) --- 15 unchanged lines hidden --- |