Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31150
b: refs/heads/master
c: ec1fdc2
h: refs/heads/master
v: v3
  • Loading branch information
Kyle McMartin authored and Kyle McMartin committed Jun 27, 2006
1 parent 45fec9f commit fd31afe
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a9d2d386c42b816a81eb1d02dfb7b502ba8cea82
refs/heads/master: ec1fdc24c2ae012b078ba0187ceef208e08a3aec
4 changes: 3 additions & 1 deletion trunk/arch/parisc/kernel/firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,9 @@ int pdc_model_info(struct pdc_model *model)
* pdc_model_sysmodel - Get the system model name.
* @name: A char array of at least 81 characters.
*
* Get system model name from PDC ROM (e.g. 9000/715 or 9000/778/B160L)
* Get system model name from PDC ROM (e.g. 9000/715 or 9000/778/B160L).
* Using OS_ID_HPUX will return the equivalent of the 'modelname' command
* on HP/UX.
*/
int pdc_model_sysmodel(char *name)
{
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/parisc/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ extern void eisa_init(void);

static int __init parisc_init(void)
{
u32 osid = (0x0006 << 16);
u32 osid = (OS_ID_LINUX << 16);

parisc_proc_mkdir();
parisc_init_resources();
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/parisc/pdc_stable.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ pdcs_osdep1_write(struct subsystem *entry, const char *buf, size_t count)
if (!entry || !buf || !count)
return -EINVAL;

if (unlikely(pdcs_osid != 0x0006))
if (unlikely(pdcs_osid != OS_ID_LINUX))
return -EPERM;

if (count > 16)
Expand Down Expand Up @@ -926,7 +926,7 @@ pdcs_osdep2_write(struct subsystem *entry, const char *buf, size_t count)
if (unlikely(pdcs_size <= 224))
return -ENOSYS;

if (unlikely(pdcs_osid != 0x0006))
if (unlikely(pdcs_osid != OS_ID_LINUX))
return -EPERM;

size = pdcs_size - 224;
Expand Down
3 changes: 1 addition & 2 deletions trunk/include/asm-parisc/pdc.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,11 @@ typedef struct {
/* constants for OS (NVM...) */
#define OS_ID_NONE 0 /* Undefined OS ID */
#define OS_ID_HPUX 1 /* HP-UX OS */
#define OS_ID_LINUX OS_ID_HPUX /* just use the same value as hpux */
#define OS_ID_MPEXL 2 /* MPE XL OS */
#define OS_ID_OSF 3 /* OSF OS */
#define OS_ID_HPRT 4 /* HP-RT OS */
#define OS_ID_NOVEL 5 /* NOVELL OS */
#define OS_ID_NT 6 /* NT OS */
#define OS_ID_LINUX 6 /* Linux */


/* constants for PDC_CHASSIS */
Expand Down

0 comments on commit fd31afe

Please sign in to comment.