Commit 73897c89 authored by claes's avatar claes

Vid range for Manufacturer volumes

parent 2510e67c
......@@ -2507,6 +2507,7 @@ char *cdh_OpSysToStr( pwr_mOpSys opsys)
int cdh_IsClassVolume( pwr_tVid vid)
{
return ( ( cdh_cSystemClassVolMin <= vid && vid <= cdh_cSystemClassVolMax) ||
( cdh_cManufactClassVolMin <= vid && vid <= cdh_cManufactClassVolMax) ||
( cdh_cUserClassVolMin <= vid && vid <= cdh_cUserClassVolMax));
}
......
......@@ -78,10 +78,14 @@ typedef enum {
#define cdh_cUserVolMin (0 + ((pwr_tVolumeId)0 << 24) + (1 << 16) + (1 << 8) + 1)
//! Largest value of volume identity for user volumes
#define cdh_cUserVolMax (0 + ((pwr_tVolumeId)0 << 24) + (254 << 16) + (254 << 8) + 254)
//! Smallest value of volume identity for manufacturer classvolumes
#define cdh_cManufactClassVolMin (0 + ((pwr_tVolumeId)0 << 24) + (0 << 16) + (250 << 8) + 0)
//! Largest value of volume identity for manufacturer classvolumes
#define cdh_cManufactClassVolMax (0 + ((pwr_tVolumeId)0 << 24) + (0 << 16) + (254 << 8) + 254)
//! Smallest value of volume identity for user classvolumes
#define cdh_cUserClassVolMin (0 + ((pwr_tVolumeId)0 << 24) + (0 << 16) + (2 << 8) + 1)
//! Largest value of volume identity for user classvolumes
#define cdh_cUserClassVolMax (0 + ((pwr_tVolumeId)0 << 24) + (2 << 16) + (254 << 8) + 254)
#define cdh_cUserClassVolMax (0 + ((pwr_tVolumeId)0 << 24) + (0 << 16) + (249 << 8) + 254)
//! Smallest value of volume identity for system classvolumes
#define cdh_cSystemClassVolMin (0 + ((pwr_tVolumeId)0 << 24) + (0 << 16) + (0 << 8) + 1)
//! Largest value of volume identity for system classvolumes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment