Some more constness.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36250 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -207,7 +207,7 @@ Stack::GetObject(usb_id id)
|
|||||||
|
|
||||||
|
|
||||||
Object *
|
Object *
|
||||||
Stack::GetObjectNoLock(usb_id id)
|
Stack::GetObjectNoLock(usb_id id) const
|
||||||
{
|
{
|
||||||
if (id >= fObjectMaxCount)
|
if (id >= fObjectMaxCount)
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -270,7 +270,7 @@ Stack::IndexOfBusManager(BusManager *busManager)
|
|||||||
|
|
||||||
|
|
||||||
BusManager *
|
BusManager *
|
||||||
Stack::BusManagerAt(int32 index)
|
Stack::BusManagerAt(int32 index) const
|
||||||
{
|
{
|
||||||
return fBusManagers.ElementAt(index);
|
return fBusManagers.ElementAt(index);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,11 +126,11 @@ public:
|
|||||||
Object * GetObject(usb_id id);
|
Object * GetObject(usb_id id);
|
||||||
|
|
||||||
// only for the kernel debugger
|
// only for the kernel debugger
|
||||||
Object * GetObjectNoLock(usb_id id);
|
Object * GetObjectNoLock(usb_id id) const;
|
||||||
|
|
||||||
void AddBusManager(BusManager *bus);
|
void AddBusManager(BusManager *bus);
|
||||||
int32 IndexOfBusManager(BusManager *bus);
|
int32 IndexOfBusManager(BusManager *bus);
|
||||||
BusManager * BusManagerAt(int32 index);
|
BusManager * BusManagerAt(int32 index) const;
|
||||||
|
|
||||||
status_t AllocateChunk(void **logicalAddress,
|
status_t AllocateChunk(void **logicalAddress,
|
||||||
void **physicalAddress,
|
void **physicalAddress,
|
||||||
@@ -221,7 +221,7 @@ virtual status_t NotifyPipeChange(Pipe *pipe,
|
|||||||
void SetRootHub(Hub *hub) { fRootHub = hub; }
|
void SetRootHub(Hub *hub) { fRootHub = hub; }
|
||||||
|
|
||||||
usb_id USBID() const { return fUSBID; }
|
usb_id USBID() const { return fUSBID; }
|
||||||
virtual const char * TypeName() = 0;
|
virtual const char * TypeName() const = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool fInitOK;
|
bool fInitOK;
|
||||||
@@ -358,7 +358,7 @@ virtual const char * TypeName() const
|
|||||||
// status packet. The toggle always
|
// status packet. The toggle always
|
||||||
// starts at 1.
|
// starts at 1.
|
||||||
virtual bool DataToggle() const { return true; }
|
virtual bool DataToggle() const { return true; }
|
||||||
virtual void SetDataToggle(bool toggle) const {}
|
virtual void SetDataToggle(bool toggle) {}
|
||||||
|
|
||||||
status_t SendRequest(uint8 requestType,
|
status_t SendRequest(uint8 requestType,
|
||||||
uint8 request, uint16 value,
|
uint8 request, uint16 value,
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ static status_t AddTo(Stack *stack);
|
|||||||
status_t ResetPort(uint8 index);
|
status_t ResetPort(uint8 index);
|
||||||
status_t SuspendPort(uint8 index);
|
status_t SuspendPort(uint8 index);
|
||||||
|
|
||||||
virtual const char * TypeName() { return "ehci"; };
|
virtual const char * TypeName() const { return "ehci"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Controller resets
|
// Controller resets
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ static status_t AddTo(Stack *stack);
|
|||||||
|
|
||||||
status_t ResetPort(uint8 index);
|
status_t ResetPort(uint8 index);
|
||||||
|
|
||||||
virtual const char * TypeName() { return "ohci"; };
|
virtual const char * TypeName() const { return "ohci"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Interrupt functions
|
// Interrupt functions
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ static status_t AddTo(Stack *stack);
|
|||||||
|
|
||||||
status_t ResetPort(uint8 index);
|
status_t ResetPort(uint8 index);
|
||||||
|
|
||||||
virtual const char * TypeName() { return "uhci"; };
|
virtual const char * TypeName() const { return "uhci"; };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Controller resets
|
// Controller resets
|
||||||
|
|||||||
Reference in New Issue
Block a user