Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
73897c89
Commit
73897c89
authored
May 20, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Vid range for Manufacturer volumes
parent
2510e67c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
src/lib/co/src/co_cdh.c
src/lib/co/src/co_cdh.c
+1
-0
src/lib/co/src/co_cdh.h
src/lib/co/src/co_cdh.h
+5
-1
No files found.
src/lib/co/src/co_cdh.c
View file @
73897c89
...
...
@@ -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
));
}
...
...
src/lib/co/src/co_cdh.h
View file @
73897c89
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment