mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-21 08:56:34 +00:00
把opengrok.ringotek.cn替换为code.dragonos.org.cn (#484)
This commit is contained in:
@ -73,7 +73,7 @@ impl CompatibleTable {
|
||||
/// @parameter: None
|
||||
/// @return: None
|
||||
///
|
||||
/// 参考: https://opengrok.ringotek.cn/xref/linux-6.1.9/drivers/base/platform.c?fi=platform_bus_init#1511
|
||||
/// 参考: https://code.dragonos.org.cn/xref/linux-6.1.9/drivers/base/platform.c?fi=platform_bus_init#1511
|
||||
pub fn platform_bus_init() -> Result<(), SystemError> {
|
||||
let platform_device: Arc<PlatformBusDevice> = PlatformBusDevice::new(
|
||||
DevicePrivateData::new(
|
||||
|
@ -103,7 +103,7 @@ impl PlatformDeviceManager {
|
||||
}
|
||||
}
|
||||
|
||||
// todo: 插入资源: https://opengrok.ringotek.cn/xref/linux-6.1.9/drivers/base/platform.c?fi=platform_device_add#691
|
||||
// todo: 插入资源: https://code.dragonos.org.cn/xref/linux-6.1.9/drivers/base/platform.c?fi=platform_device_add#691
|
||||
let r = device_manager().add_device(pdev.clone() as Arc<dyn Device>);
|
||||
if r.is_ok() {
|
||||
pdev.set_state(DeviceState::Initialized);
|
||||
|
@ -39,7 +39,7 @@ pub struct PlatformDriverManager;
|
||||
impl PlatformDriverManager {
|
||||
/// 注册平台设备驱动
|
||||
///
|
||||
/// 参考 https://opengrok.ringotek.cn/xref/linux-6.1.9/drivers/base/platform.c?fi=__platform_driver_register#861
|
||||
/// 参考 https://code.dragonos.org.cn/xref/linux-6.1.9/drivers/base/platform.c?fi=__platform_driver_register#861
|
||||
pub fn register(&self, driver: Arc<dyn PlatformDriver>) -> Result<(), SystemError> {
|
||||
driver.set_bus(Some(Arc::downgrade(&(platform_bus() as Arc<dyn Bus>))));
|
||||
return driver_manager().register(driver as Arc<dyn Driver>);
|
||||
|
@ -111,7 +111,7 @@ impl Bus for PlatformBus {
|
||||
/// and compare it against the name of the driver. Return whether they match
|
||||
/// or not.
|
||||
///
|
||||
/// 参考 https://opengrok.ringotek.cn/xref/linux-6.1.9/drivers/base/platform.c#1331
|
||||
/// 参考 https://code.dragonos.org.cn/xref/linux-6.1.9/drivers/base/platform.c#1331
|
||||
///
|
||||
///
|
||||
fn match_device(
|
||||
@ -151,7 +151,7 @@ impl AttributeGroup for PlatformDeviceAttrGroup {
|
||||
}
|
||||
|
||||
fn attrs(&self) -> &[&'static dyn Attribute] {
|
||||
// todo: https://opengrok.ringotek.cn/xref/linux-6.1.9/drivers/base/platform.c?r=&mo=38425&fi=1511#1311
|
||||
// todo: https://code.dragonos.org.cn/xref/linux-6.1.9/drivers/base/platform.c?r=&mo=38425&fi=1511#1311
|
||||
return &[];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user