Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
148e5c46
Commit
148e5c46
authored
14 years ago
by
patacongo
Browse files
Options
Downloads
Patches
Plain Diff
typos
git-svn-id:
svn://svn.code.sf.net/p/nuttx/code/trunk@3192
42af7a65-404d-4744-a932-0658087f49c3
parent
78f17047
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
drivers/usbdev/usbdev_scsi.c
+5
-5
5 additions, 5 deletions
drivers/usbdev/usbdev_scsi.c
include/nuttx/scsi.h
+3
-3
3 additions, 3 deletions
include/nuttx/scsi.h
with
8 additions
and
8 deletions
drivers/usbdev/usbdev_scsi.c
+
5
−
5
View file @
148e5c46
...
...
@@ -742,13 +742,13 @@ static int inline usbstrg_cmdmodesense6(FAR struct usbstrg_dev_s *priv,
/* There are no block descriptors, only the following mode page: */
ret
=
usbstrg_modepage
(
priv
,
&
buf
[
SCSIREP_MODEPARAMETERHDR6_SIZEOF
],
modesense
->
pcpgcode
,
&
mdlen
);
ret
=
usbstrg_modepage
(
priv
,
&
buf
[
SCSIRE
S
P_MODEPARAMETERHDR6_SIZEOF
],
modesense
->
pcpgcode
,
&
mdlen
);
if
(
ret
==
OK
)
{
/* Store the mode data length and return the total message size */
mph
->
mdlen
=
mdlen
-
1
;
priv
->
nreqbytes
=
mdlen
+
SCSIREP_MODEPARAMETERHDR6_SIZEOF
;
priv
->
nreqbytes
=
mdlen
+
SCSIRE
S
P_MODEPARAMETERHDR6_SIZEOF
;
}
}
}
...
...
@@ -1187,18 +1187,18 @@ static int inline usbstrg_cmdmodesense10(FAR struct usbstrg_dev_s *priv,
* (3) A variable lengtth list of mode page formats
*/
memset
(
mph
,
0
,
SCSIREP_MODEPARAMETERHDR10_SIZEOF
);
memset
(
mph
,
0
,
SCSIRE
S
P_MODEPARAMETERHDR10_SIZEOF
);
mph
->
param
=
(
priv
->
lun
->
readonly
?
SCSIRESP_MODEPARMHDR_DAPARM_WP
:
0x00
);
/* There are no block descriptors, only the following mode page: */
ret
=
usbstrg_modepage
(
priv
,
&
buf
[
SCSIREP_MODEPARAMETERHDR10_SIZEOF
],
modesense
->
pcpgcode
,
&
mdlen
);
ret
=
usbstrg_modepage
(
priv
,
&
buf
[
SCSIRE
S
P_MODEPARAMETERHDR10_SIZEOF
],
modesense
->
pcpgcode
,
&
mdlen
);
if
(
ret
==
OK
)
{
/* Store the mode data length and return the total message size */
usbstrg_putbe16
(
mph
->
mdlen
,
mdlen
-
2
);
priv
->
nreqbytes
=
mdlen
+
SCSIREP_MODEPARAMETERHDR10_SIZEOF
;
priv
->
nreqbytes
=
mdlen
+
SCSIRE
S
P_MODEPARAMETERHDR10_SIZEOF
;
}
}
}
...
...
This diff is collapsed.
Click to expand it.
include/nuttx/scsi.h
+
3
−
3
View file @
148e5c46
...
...
@@ -735,7 +735,7 @@ struct scsiresp_modeparameterhdr6_s
uint8_t
param
;
/* 2: Device-specific parameter */
uint8_t
bdlen
;
/* 3: Block descriptor length */
};
#define SCSIREP_MODEPARAMETERHDR6_SIZEOF 4
#define SCSIRE
S
P_MODEPARAMETERHDR6_SIZEOF 4
struct
scsiresp_blockdesc_s
{
...
...
@@ -744,7 +744,7 @@ struct scsiresp_blockdesc_s
uint8_t
reserved
;
/* 4: reserved */
uint8_t
blklen
[
3
];
/* 5-7: Block len */
};
#define SCSIREP_BLOCKDESC_SIZEOF 8
#define SCSIRE
S
P_BLOCKDESC_SIZEOF 8
struct
scsiresp_pageformat_s
{
...
...
@@ -933,7 +933,7 @@ struct scsiresp_modeparameterhdr10_s
uint8_t
reserved
[
2
];
/* 4-5: reserved */
uint8_t
bdlen
[
2
];
/* 6-7: Block descriptor length */
};
#define SCSIREP_MODEPARAMETERHDR10_SIZEOF 8
#define SCSIRE
S
P_MODEPARAMETERHDR10_SIZEOF 8
struct
scsicmd_modesense10_s
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment