Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
55bf1ffd
Commit
55bf1ffd
authored
Apr 07, 2003
by
Alan Cox
Committed by
Linus Torvalds
Apr 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] header for pc9800 type detection
parent
4f4f9a6f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
include/asm-i386/pc9800.h
include/asm-i386/pc9800.h
+27
-0
No files found.
include/asm-i386/pc9800.h
0 → 100644
View file @
55bf1ffd
/*
* PC-9800 machine types.
*
* Copyright (C) 1999 TAKAI Kosuke <tak@kmc.kyoto-u.ac.jp>
* (Linux/98 Project)
*/
#ifndef _ASM_PC9800_H_
#define _ASM_PC9800_H_
#include <asm/pc9800_sca.h>
#include <asm/types.h>
#define __PC9800SCA(type, pa) (*(type *) phys_to_virt(pa))
#define __PC9800SCA_TEST_BIT(pa, n) \
((__PC9800SCA(u8, pa) & (1U << (n))) != 0)
#define PC9800_HIGHRESO_P() __PC9800SCA_TEST_BIT(PC9800SCA_BIOS_FLAG, 3)
#define PC9800_8MHz_P() __PC9800SCA_TEST_BIT(PC9800SCA_BIOS_FLAG, 7)
/* 0x2198 is 98 21 on memory... */
#define PC9800_9821_P() (__PC9800SCA(u16, PC9821SCA_ROM_ID) == 0x2198)
/* Note PC9821_...() are valid only when PC9800_9821_P() was true. */
#define PC9821_IDEIF_DOUBLE_P() __PC9800SCA_TEST_BIT(PC9821SCA_ROM_FLAG4, 4)
#endif
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