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
Kirill Smelkov
linux
Commits
3f4e15d0
Commit
3f4e15d0
authored
Dec 18, 2002
by
Dave Jones
Committed by
Dave Jones
Dec 18, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AGP] Missing bits of David Mosberger's cleanups.
parent
60d5a7ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
drivers/char/agp/hp-agp.c
drivers/char/agp/hp-agp.c
+6
-6
drivers/char/agp/i460-agp.c
drivers/char/agp/i460-agp.c
+12
-12
No files found.
drivers/char/agp/hp-agp.c
View file @
3f4e15d0
...
@@ -216,8 +216,7 @@ static void hp_zx1_tlbflush(agp_memory * mem)
...
@@ -216,8 +216,7 @@ static void hp_zx1_tlbflush(agp_memory * mem)
{
{
struct
_hp_private
*
hp
=
&
hp_private
;
struct
_hp_private
*
hp
=
&
hp_private
;
OUTREG64
(
hp
->
registers
,
HP_ZX1_PCOM
,
OUTREG64
(
hp
->
registers
,
HP_ZX1_PCOM
,
hp
->
gart_base
|
log2
(
hp
->
gart_size
));
hp
->
gart_base
|
log2
(
hp
->
gart_size
));
INREG64
(
hp
->
registers
,
HP_ZX1_PCOM
);
INREG64
(
hp
->
registers
,
HP_ZX1_PCOM
);
}
}
...
@@ -251,7 +250,7 @@ static int hp_zx1_create_gatt_table(void)
...
@@ -251,7 +250,7 @@ static int hp_zx1_create_gatt_table(void)
static
int
hp_zx1_free_gatt_table
(
void
)
static
int
hp_zx1_free_gatt_table
(
void
)
{
{
struct
_hp_private
*
hp
=
&
hp_private
;
struct
_hp_private
*
hp
=
&
hp_private
;
if
(
hp
->
io_pdir_owner
)
if
(
hp
->
io_pdir_owner
)
free_pages
((
unsigned
long
)
hp
->
io_pdir
,
free_pages
((
unsigned
long
)
hp
->
io_pdir
,
get_order
(
hp
->
io_pdir_size
));
get_order
(
hp
->
io_pdir_size
));
...
@@ -368,6 +367,7 @@ static int __init agp_find_supported_device(struct pci_dev *dev)
...
@@ -368,6 +367,7 @@ static int __init agp_find_supported_device(struct pci_dev *dev)
return
hp_zx1_setup
(
dev
);
return
hp_zx1_setup
(
dev
);
}
}
return
-
ENODEV
;
return
-
ENODEV
;
}
static
int
__init
agp_hp_probe
(
struct
pci_dev
*
dev
,
const
struct
pci_device_id
*
ent
)
static
int
__init
agp_hp_probe
(
struct
pci_dev
*
dev
,
const
struct
pci_device_id
*
ent
)
{
{
...
@@ -375,14 +375,14 @@ static int __init agp_hp_probe (struct pci_dev *dev, const struct pci_device_id
...
@@ -375,14 +375,14 @@ static int __init agp_hp_probe (struct pci_dev *dev, const struct pci_device_id
agp_register_driver
(
dev
);
agp_register_driver
(
dev
);
return
0
;
return
0
;
}
}
return
-
ENODEV
;
return
-
ENODEV
;
}
}
static
struct
pci_device_id
agp_hp_pci_table
[]
__initdata
=
{
static
struct
pci_device_id
agp_hp_pci_table
[]
__initdata
=
{
{
{
.
class
=
(
PCI_CLASS_BRIDGE_HOST
<<
8
),
.
class
=
(
PCI_CLASS_BRIDGE_HOST
<<
8
),
.
class_mask
=
~
0
,
.
class_mask
=
~
0
,
.
vendor
_id
=
PCI_VENDOR_ID_HP
,
.
vendor
=
PCI_VENDOR_ID_HP
,
.
device
=
PCI_DEVICE_ID_HP_ZX1_LBA
,
.
device
=
PCI_DEVICE_ID_HP_ZX1_LBA
,
.
subvendor
=
PCI_ANY_ID
,
.
subvendor
=
PCI_ANY_ID
,
.
subdevice
=
PCI_ANY_ID
,
.
subdevice
=
PCI_ANY_ID
,
...
@@ -412,7 +412,7 @@ static int __init agp_hp_init(void)
...
@@ -412,7 +412,7 @@ static int __init agp_hp_init(void)
static
void
__exit
agp_hp_cleanup
(
void
)
static
void
__exit
agp_hp_cleanup
(
void
)
{
{
agp_unregister_driver
();
agp_unregister_driver
();
pci_unregister_driver
(
&
agp_pci_driver
);
pci_unregister_driver
(
&
agp_
hp_
pci_driver
);
}
}
module_init
(
agp_hp_init
);
module_init
(
agp_hp_init
);
...
...
drivers/char/agp/i460-agp.c
View file @
3f4e15d0
...
@@ -575,45 +575,45 @@ static int __init agp_intel_i460_probe (struct pci_dev *dev, const struct pci_de
...
@@ -575,45 +575,45 @@ static int __init agp_intel_i460_probe (struct pci_dev *dev, const struct pci_de
return
0
;
return
0
;
}
}
static
struct
pci_device_id
agp_i460_pci_table
[]
__initdata
=
{
static
struct
pci_device_id
agp_i
ntel_i
460_pci_table
[]
__initdata
=
{
{
{
.
class
=
(
PCI_CLASS_BRIDGE_HOST
<<
8
),
.
class
=
(
PCI_CLASS_BRIDGE_HOST
<<
8
),
.
class_mask
=
~
0
,
.
class_mask
=
~
0
,
.
vendor
=
PCI_VENDOR_ID_INTEL
,
.
vendor
=
PCI_VENDOR_ID_INTEL
,
.
device
=
PCI_DEVICE_ID_INTEL_460GX
,
.
device
=
PCI_DEVICE_ID_INTEL_
84
460GX
,
.
subvendor
=
PCI_ANY_ID
,
.
subvendor
=
PCI_ANY_ID
,
.
subdevice
=
PCI_ANY_ID
,
.
subdevice
=
PCI_ANY_ID
,
},
},
{
}
{
}
};
};
MODULE_DEVICE_TABLE
(
pci
,
agp_i460_pci_table
);
MODULE_DEVICE_TABLE
(
pci
,
agp_i
ntel_i
460_pci_table
);
static
struct
__initdata
pci_driver
agp_i460_pci_driver
=
{
static
struct
__initdata
pci_driver
agp_i
ntel_i
460_pci_driver
=
{
.
name
=
"agpgart-intel-i460"
,
.
name
=
"agpgart-intel-i460"
,
.
id_table
=
agp_i460_pci_table
,
.
id_table
=
agp_i
ntel_i
460_pci_table
,
.
probe
=
agp_i460_probe
,
.
probe
=
agp_i
ntel_i
460_probe
,
};
};
static
int
__init
agp_i460_init
(
void
)
static
int
__init
agp_i
ntel_i
460_init
(
void
)
{
{
int
ret_val
;
int
ret_val
;
ret_val
=
pci_module_init
(
&
agp_i460_pci_driver
);
ret_val
=
pci_module_init
(
&
agp_i
ntel_i
460_pci_driver
);
if
(
ret_val
)
if
(
ret_val
)
agp_bridge
.
type
=
NOT_SUPPORTED
;
agp_bridge
.
type
=
NOT_SUPPORTED
;
return
ret_val
;
return
ret_val
;
}
}
static
void
__exit
agp_i460_cleanup
(
void
)
static
void
__exit
agp_i
ntel_i
460_cleanup
(
void
)
{
{
agp_unregister_driver
();
agp_unregister_driver
();
pci_unregister_driver
(
&
agp_i460_pci_driver
);
pci_unregister_driver
(
&
agp_i
ntel_i
460_pci_driver
);
}
}
module_init
(
agp_i460_init
);
module_init
(
agp_i
ntel_i
460_init
);
module_exit
(
agp_i460_cleanup
);
module_exit
(
agp_i
ntel_i
460_cleanup
);
MODULE_AUTHOR
(
"Chris Ahna <Christopher.J.Ahna@intel.com>"
);
MODULE_AUTHOR
(
"Chris Ahna <Christopher.J.Ahna@intel.com>"
);
MODULE_LICENSE
(
"GPL and additional rights"
);
MODULE_LICENSE
(
"GPL and additional rights"
);
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