-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] I2O: second code cleanup of sparse warnings and unneeded sync…
…ronization Changes: - Added header "core.h" for i2o_core.ko internal definitions - More sparse fixes - Changed display of TID's in sysfs attributes from XXX to 0xXXX - Use the right functions for accessing I/O and normal memory - Removed error handling of SCSI device errors and let the SCSI layer take care of it - Added new device / removed device handling to SCSI-OSM - Make status access volatile - Cleaned up activation of I2O controller - Removed unnecessary wmb() and rmb() calls - Use own struct i2o_io for I/O memory instead of struct i2o_dma Signed-off-by: Markus Lidel <Markus.Lidel@shadowconnect.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
- Loading branch information
Markus Lidel
authored and
Linus Torvalds
committed
Jun 24, 2005
1 parent
b2aaee3
commit 9e87545
Showing
12 changed files
with
275 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* I2O core internal declarations | ||
* | ||
* Copyright (C) 2005 Markus Lidel <Markus.Lidel@shadowconnect.com> | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation; either version 2 of the License, or (at your | ||
* option) any later version. | ||
* | ||
* Fixes/additions: | ||
* Markus Lidel <Markus.Lidel@shadowconnect.com> | ||
* initial version. | ||
*/ | ||
|
||
/* Exec-OSM */ | ||
extern struct bus_type i2o_bus_type; | ||
|
||
extern struct i2o_driver i2o_exec_driver; | ||
extern int i2o_exec_lct_get(struct i2o_controller *); | ||
|
||
extern int __init i2o_exec_init(void); | ||
extern void __exit i2o_exec_exit(void); | ||
|
||
/* driver */ | ||
extern int i2o_driver_dispatch(struct i2o_controller *, u32); | ||
|
||
extern int __init i2o_driver_init(void); | ||
extern void __exit i2o_driver_exit(void); | ||
|
||
/* PCI */ | ||
extern int __init i2o_pci_init(void); | ||
extern void __exit i2o_pci_exit(void); | ||
|
||
/* device */ | ||
extern void i2o_device_remove(struct i2o_device *); | ||
extern int i2o_device_parse_lct(struct i2o_controller *); | ||
|
||
extern int i2o_device_init(void); | ||
extern void i2o_device_exit(void); | ||
|
||
/* IOP */ | ||
extern struct i2o_controller *i2o_iop_alloc(void); | ||
extern void i2o_iop_free(struct i2o_controller *); | ||
|
||
extern int i2o_iop_add(struct i2o_controller *); | ||
extern void i2o_iop_remove(struct i2o_controller *); | ||
|
||
/* control registers relative to c->base */ | ||
#define I2O_IRQ_STATUS 0x30 | ||
#define I2O_IRQ_MASK 0x34 | ||
#define I2O_IN_PORT 0x40 | ||
#define I2O_OUT_PORT 0x44 | ||
|
||
#define I2O_IRQ_OUTBOUND_POST 0x00000008 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.