]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Remove more of the mptutil unused code
authorbapt <bapt@FreeBSD.org>
Wed, 28 Oct 2015 11:28:46 +0000 (11:28 +0000)
committerbapt <bapt@FreeBSD.org>
Wed, 28 Oct 2015 11:28:46 +0000 (11:28 +0000)
Sponsored by: Gandi.net

usr.sbin/mpsutil/mpsutil.h

index 184238406af4dd0c0e574886b4ab356ba2192d5a..0c1a9416599b056d1f61305831d50d79381dcf32 100644 (file)
@@ -141,37 +141,4 @@ mps_read_ioc_page(int fd, U8 PageNumber, U16 *IOCStatus)
 
 MPI2_IOC_FACTS_REPLY * mps_get_iocfacts(int fd);
 
-#if 0
-static __inline U32
-mpt_vol_pageaddr(U8 VolumeBus, U8 VolumeID)
-{
-
-       return (VolumeBus << 8 | VolumeID);
-}
-
-static __inline CONFIG_PAGE_RAID_VOL_0 *
-mpt_vol_info(int fd, U8 VolumeBus, U8 VolumeID, U16 *IOCStatus)
-{
-
-       return (mpt_read_config_page(fd, MPI_CONFIG_PAGETYPE_RAID_VOLUME, 0,
-           mpt_vol_pageaddr(VolumeBus, VolumeID), IOCStatus));
-}
-
-static __inline CONFIG_PAGE_RAID_VOL_1 *
-mpt_vol_names(int fd, U8 VolumeBus, U8 VolumeID, U16 *IOCStatus)
-{
-
-       return (mpt_read_config_page(fd, MPI_CONFIG_PAGETYPE_RAID_VOLUME, 1,
-           mpt_vol_pageaddr(VolumeBus, VolumeID), IOCStatus));
-}
-
-static __inline CONFIG_PAGE_RAID_PHYS_DISK_0 *
-mpt_pd_info(int fd, U8 PhysDiskNum, U16 *IOCStatus)
-{
-
-       return (mpt_read_config_page(fd, MPI_CONFIG_PAGETYPE_RAID_PHYSDISK, 0,
-           PhysDiskNum, IOCStatus));
-}
-#endif
-
 #endif /* !__MPTUTIL_H__ */