Some more constness.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36250 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2010-04-14 09:44:15 +00:00
parent 19b8f8a080
commit 38fc536e05
5 changed files with 9 additions and 9 deletions

View File

@ -207,7 +207,7 @@ Stack::GetObject(usb_id id)
Object *
Stack::GetObjectNoLock(usb_id id)
Stack::GetObjectNoLock(usb_id id) const
{
if (id >= fObjectMaxCount)
return NULL;
@ -270,7 +270,7 @@ Stack::IndexOfBusManager(BusManager *busManager)
BusManager *
Stack::BusManagerAt(int32 index)
Stack::BusManagerAt(int32 index) const
{
return fBusManagers.ElementAt(index);
}

View File

@ -126,11 +126,11 @@ public:
Object * GetObject(usb_id id);
// only for the kernel debugger
Object * GetObjectNoLock(usb_id id);
Object * GetObjectNoLock(usb_id id) const;
void AddBusManager(BusManager *bus);
int32 IndexOfBusManager(BusManager *bus);
BusManager * BusManagerAt(int32 index);
BusManager * BusManagerAt(int32 index) const;
status_t AllocateChunk(void **logicalAddress,
void **physicalAddress,
@ -221,7 +221,7 @@ virtual status_t NotifyPipeChange(Pipe *pipe,
void SetRootHub(Hub *hub) { fRootHub = hub; }
usb_id USBID() const { return fUSBID; }
virtual const char * TypeName() = 0;
virtual const char * TypeName() const = 0;
protected:
bool fInitOK;
@ -358,7 +358,7 @@ virtual const char * TypeName() const
// status packet. The toggle always
// starts at 1.
virtual bool DataToggle() const { return true; }
virtual void SetDataToggle(bool toggle) const {}
virtual void SetDataToggle(bool toggle) {}
status_t SendRequest(uint8 requestType,
uint8 request, uint16 value,

View File

@ -50,7 +50,7 @@ static status_t AddTo(Stack *stack);
status_t ResetPort(uint8 index);
status_t SuspendPort(uint8 index);
virtual const char * TypeName() { return "ehci"; };
virtual const char * TypeName() const { return "ehci"; };
private:
// Controller resets

View File

@ -54,7 +54,7 @@ static status_t AddTo(Stack *stack);
status_t ResetPort(uint8 index);
virtual const char * TypeName() { return "ohci"; };
virtual const char * TypeName() const { return "ohci"; };
private:
// Interrupt functions

View File

@ -112,7 +112,7 @@ static status_t AddTo(Stack *stack);
status_t ResetPort(uint8 index);
virtual const char * TypeName() { return "uhci"; };
virtual const char * TypeName() const { return "uhci"; };
private:
// Controller resets