Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Public function for drive_id #42

Open
IanSeyler opened this issue Dec 12, 2017 · 6 comments
Open

Public function for drive_id #42

IanSeyler opened this issue Dec 12, 2017 · 6 comments

Comments

@IanSeyler
Copy link
Member

No description provided.

@ghost
Copy link

ghost commented Dec 12, 2017

How about a function for getting the number of drives in the system?

@ghost
Copy link

ghost commented May 18, 2018

@IanSeyler what do you mean drive ID? Would that be the device ID in the PCI register? Or an ID in the AHCI spec? What it be used for the b_disk_read and b_disk_write functions (instead of the drive index?)

@IanSeyler
Copy link
Member Author

This would be the AHCI drive number (as in which SATA port the drive is connected to).

@ghost
Copy link

ghost commented May 22, 2018

What if there are two AHCI controllers? The same port index could refer to two or more ports, depending on how many AHCI controllers there are.

@IanSeyler
Copy link
Member Author

Right now the kernel only supports one AHCI device so currently that isn't an issue. However the driver and API will need to be adjusted for this in the future. Currently the AHCI driver stops looking for devices after the first one is found.

@IanSeyler
Copy link
Member Author

This will be closed once #57 is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant