Skip to content

Commit

Permalink
PPC: make arch_framebuffer.h more like ARM version
Browse files Browse the repository at this point in the history
Now the only difference is the physical address, which is returned as
phys_addr_t as should be.
  • Loading branch information
mmuman committed Oct 22, 2016
1 parent f4dc609 commit 72ddc91
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/system/boot/arch/ppc/arch_framebuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,22 @@ class ArchFramebuffer {
{ return B_OK; };

virtual addr_t Base() { return fBase; };
phys_addr_t PhysicalBase() { return fPhysicalBase; };
size_t Size() { return fSize; };

int Width() { return fCurrentWidth; };
int Height() { return fCurrentHeight; };
int Depth() { return fCurrentDepth; };
int BytesPerRow() { return fCurrentBytesPerRow; };

protected:
addr_t fBase;
private:
phys_addr_t fPhysicalBase;
size_t fSize;
int fCurrentWidth;
int fCurrentHeight;
int fCurrentDepth;
int fCurrentBytesPerRow;
};


Expand Down

0 comments on commit 72ddc91

Please sign in to comment.